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.  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 Dec 23, 2024
1 parent 0806e1e commit 671884f
Showing 1 changed file with 133 additions and 94 deletions.
Loading

0 comments on commit 671884f

Please sign in to comment.