Skip to content

Commit 5c7009a

Browse files
hamelphiTorax team
authored andcommitted
Add test case for rotation with tglfnn-ukaea in sim_test
PiperOrigin-RevId: 866504545
1 parent 51ab828 commit 5c7009a

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

torax/tests/sim_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ 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+
),
261268
# Predictor-corrector solver with rotation
262269
(
263270
'test_iterhybrid_predictor_corrector_rotation',
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'] = 1.0

0 commit comments

Comments
 (0)