-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+(*)Add ALTERNATE_FIRST_DIRECTION #1501
+(*)Add ALTERNATE_FIRST_DIRECTION #1501
Conversation
Added a new runtime parameter, ALTERNATE_FIRST_DIRECTION, to cause the first direction in the directionally split operators (such as the continuity solver, the barotropic solver, and the tracer advection) to alternate with every dynamic timestep. This includes changes to record this direction in the restart file, so that the model will reproduce across restarts. In addition a previously uninitialized logical in offline_advection_layer is now being initialized similarly to other similar variables in the MOM_offline_main module. By default, all answers in the MOM6-examples are bitwise identical, but there is a new runtime parameter and a new non-mandatory field in the MOM6 restart files, and there might be changes in offline tracer advection runs.
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #1501 +/- ##
=========================================
Coverage 29.05% 29.06%
=========================================
Files 237 237
Lines 71629 71645 +16
=========================================
+ Hits 20812 20822 +10
- Misses 50817 50823 +6
Continue to review full report at Codecov.
|
Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/jobs/69534 ✔️ 🟠 New parameter:
|
call set_first_direction(G, NINT(CS%first_dir_restart)) | ||
! Store the first direction for the next time a restart file is written. | ||
CS%first_dir_restart = real(G%first_direction) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found a bug that First_direction
from restart is not used, and it is traced back to this piece of code.
I think this section of added code is misplaced; it is within the if(CS%rotate_index) block. Should it be moved outside?
Added a new runtime parameter, ALTERNATE_FIRST_DIRECTION, to cause the first
direction in the directionally split operators (such as the continuity solver,
the barotropic solver, and the tracer advection) to alternate with every dynamic
timestep. This includes changes to record this direction in the restart file,
so that the model will reproduce across restarts. In addition a previously
uninitialized logical in offline_advection_layer is now being initialized
similarly to other similar variables in the MOM_offline_main module. By
default, all answers in the MOM6-examples are bitwise identical, but there is a
new runtime parameter and a new non-mandatory field in the MOM6 restart files,
and there might be changes in offline tracer advection runs.