Skip to content

Commit 8eb9c8f

Browse files
hamelphiTorax team
authored andcommitted
add test case for rotation with tglfnn-ukaea in sim_test
PiperOrigin-RevId: 866504545
1 parent 3817fd9 commit 8eb9c8f

5 files changed

Lines changed: 23 additions & 0 deletions

torax/tests/sim_test.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,20 @@ class SimTest(sim_test_case.SimTestCase):
258258
'test_iterhybrid_predictor_corrector_tglfnn_ukaea',
259259
'test_iterhybrid_predictor_corrector_tglfnn_ukaea.py',
260260
),
261+
# Predictor-corrector solver with TGLFNNukaea transport with rotation
262+
(
263+
'test_iterhybrid_predictor_corrector_tglfnn_ukaea_rotation',
264+
'test_iterhybrid_predictor_corrector_tglfnn_ukaea_rotation.py',
265+
_ALL_PROFILES,
266+
1e-6,
267+
),
268+
# Predictor-corrector solver with rotation
269+
(
270+
'test_iterhybrid_predictor_corrector_rotation',
271+
'test_iterhybrid_predictor_corrector_rotation.py',
272+
_ALL_PROFILES,
273+
1e-6,
274+
),
261275
# L-mode iterhybrid variant with combined transport model and overwrites
262276
(
263277
'test_iterhybrid_predictor_corrector_Lmode_combined',
Binary file not shown.

torax/tests/test_data/test_iterhybrid_predictor_corrector_rotation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
1.0: 0.0,
3232
}
3333

34+
# Reduce the final time since numerical difference across platforms can
35+
# cause significant divergences over time.
36+
CONFIG['numerics']['t_final'] = 3.0
37+
38+
3439
# Modify this if you want to scale up or down the effect of rotation.
3540
CONFIG['transport']['rotation_multiplier'] = 1.0
3641
CONFIG['transport']['shear_suppression_model'] = 'vandeplassche2020'
Binary file not shown.

torax/tests/test_data/test_iterhybrid_predictor_corrector_tglfnn_ukaea_rotation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@
3232
0.0: 1.8 * _omega_ref,
3333
1.0: 0.0,
3434
}
35+
36+
# Reduce the final time since numerical difference across platforms can
37+
# cause significant divergences over time.
38+
CONFIG['numerics']['t_final'] = 3.0

0 commit comments

Comments
 (0)