Skip to content

Commit

Permalink
+Add turns argument to MOM_read_data
Browse files Browse the repository at this point in the history
  Added a new turns optional argument to 6 versions of the MOM_read_data
routines to allow for the reading to override the number of turns in the
MOM_domain that is passed into these routines.  Several internal turns variables
in the same routines were renamed qturns to allow for the new optional
arguments. Also check for whether the MOM_domain%domain_in pointer is associated
before it is used, avoiding a segmentation fault that was occurring when a
restart file is read and ROTATE_INDEX is true.  Also added rotate_array calls to
ensure that the halo values are retained while reading data into a rotated
array.  These changes are necessary to allow for the model to be initialized
from a restart files with rotated grids.  Several instances of continuation line
indentation that do not follow the typical 4-space pattern used elsewhere in the
MOM6 code and documented in the MOM6 style guide were also altered to follow the
standard.  All answers that previously worked are bitwise identical, but there
are new optional arguments to publicly visible interfaces.
  • Loading branch information
Hallberg-NOAA committed Feb 13, 2025
1 parent 9aaf5e1 commit b41f0a4
Showing 1 changed file with 163 additions and 101 deletions.
Loading

0 comments on commit b41f0a4

Please sign in to comment.