Skip to content

+(*)Add ALTERNATE_FIRST_DIRECTION#1501

Merged
marshallward merged 2 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:alternate_first_direction
Oct 1, 2021
Merged

+(*)Add ALTERNATE_FIRST_DIRECTION#1501
marshallward merged 2 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:alternate_first_direction

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Collaborator

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.

  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
Copy link
Copy Markdown

codecov Bot commented Sep 23, 2021

Codecov Report

Merging #1501 (f57f608) into dev/gfdl (41947ab) will increase coverage by 0.00%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/tracer/MOM_offline_main.F90 0.00% <0.00%> (ø)
src/core/MOM.F90 59.00% <58.82%> (+0.01%) ⬆️
src/tracer/MOM_tracer_advect.F90 31.08% <0.00%> (+0.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41947ab...f57f608. Read the comment docs.

Comment thread src/core/MOM.F90
@marshallward
Copy link
Copy Markdown
Collaborator

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/jobs/69534 ✔️ 🟠

New parameter:

  • ALTERNATE_FIRST_DIRECTION

@marshallward marshallward merged commit 8e4b4bc into mom-ocean:dev/gfdl Oct 1, 2021
Comment thread src/core/MOM.F90
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)

Copy link
Copy Markdown
Contributor

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?

@Hallberg-NOAA Hallberg-NOAA deleted the alternate_first_direction branch November 22, 2021 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants