forked from MITgcm/MITgcm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace flag SEAICE_ALLOW_DYNAMICS by more consistent SEAICE_CGRID an…
…d SEAICE_BGRID_DYNAMICS (MITgcm#734) * compile code only if SEAICE_ALLOW_DYNAMCS is defined - also refine usage of cpp flags * avoid unused variable warning * define and initialise variables only with SEAICE_ALLOW_DYNAMICS def. - avoid unnecessary memory overhead - re-organise common blocks and initialisation to reduce number cpp flags * add new flag SEAICE_BGRID_DYNAMICS, remove SEAICE_ALLOW_DYNAMICS - replace ifdef SEAICE_ALLOW_DYNAMICS with if ( define SEAICE_CGRID || defined SEAICE_BGRID_DYNAMICS ) - problem: cannot add check if SEAICE_CGRID and SEAICE_BGRID_DYNAMICS are both defined, because in this case, the code does not (yet) compile * amending previous incomplete commit * replace U/VICEC by u/vIceB for B-grid code avoid conflicts with C-grid code * more adjustments to make it work with neither B or C-grid defined and AD-ocde * fix a comment * update SEAICE_OPTIONS.h files in verification experiments to be as similar as possible to currrent pkg/seaice/SEAICE_OPTIONS.h * minor: some spacing to help read the code * avoid un-used variables * fix previous commit * minor cleaning * add comments and exclude more diagnostics code ifnde SEAICE_CGRID - explain potentially unclear CPP-flag logic - add B-grid/C-grid version comment and clean up header * fix a typo in comments * Document adding SEAICE_BGRID_DYNAMICS option --------- Co-authored-by: Jean-Michel Campin <[email protected]>
- Loading branch information
Showing
50 changed files
with
2,367 additions
and
1,145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.