Skip to content

update MOM6 to its main repo. 20250818 updating (default parameter changes)#161

Merged
jiandewang merged 6 commits into
NOAA-EMC:dev/emcfrom
jiandewang:feature/update-MOM6-20250818
Sep 15, 2025
Merged

update MOM6 to its main repo. 20250818 updating (default parameter changes)#161
jiandewang merged 6 commits into
NOAA-EMC:dev/emcfrom
jiandewang:feature/update-MOM6-20250818

Conversation

@jiandewang
Copy link
Copy Markdown
Collaborator

MOM6 main repo. is upated on 20250818 which is originally GFDL's change default parameter PR (mom-ocean#1670). Need to merge it into dev/emc. See detail at EMC issue #160

Hallberg-NOAA and others added 6 commits August 5, 2025 10:30
  Updated the default values of 15 runtime parameters, as agreed upon in a MOM6
consortium wide conversations on July 29, 2024 and December 16, 2024.  The most
prominent of these is that the default equation of state is now EQN_OF_STATE =
"WRIGHT_FULL", in place of the buggy previous default of "WRIGHT".

  The 8 answer date parameters REGRIDDING_ANSWER_DATE, TIDES_ANSWER_DATE,
WAVE_INTERFACE_ANSWER_DATE, MEKE_GM_SRC_ANSWER_DATE, NDIFF_ANSWER_DATE,
KPP%ANSWER_DATE, HOR_DIFF_ANSWER_DATE and LOTW_BBL_ANSWER_DATE all now take
their default values from DEFAULT_ANSWER_DATE.

  The bug-retention parameters MEKE_GM_SRC_ALT_SLOPE_BUG, HOR_DIFF_LIMIT_BUG,
BACKSCATTER_UNDERBOUND, DETERMINE_TEMP_CONVERGENCE_BUG, LA_MISALIGNMENT_BUG and
IDL_HURR_SCM_EDGE_TAPER_BUG are now false by default.

  The MOM_input files for the test cases in the `.testing/tc[01234]` directories
were updated to explicitly set all of these parameters to their previous default
values if they are used in the relevant cases, as well as parameters that will
be change following discussions from June 2, 2205.

  Bitwise identical answers are recovered if all 15 of these parameters are set
explicitly, but answers can change if any of these parameters take default
values.  All of these default changes are the consensus decision of
consortium-wise MOM6 dev calls.
  Updated the default values of 6 runtime parameters, as agreed upon in a MOM6
consortium wide conversations on June 2, 2025. VISC_REM_BUG and FRICTWORK_BUG
are now false by default. MASS_WEIGHT_IN_PRESSURE_GRADIENT_TOP now takes its
default value from the setting for MASS_WEIGHT_IN_PRESSURE_GRADIENT.  Similarly,
the default for DRAG_DIFFUSIVITY_ANSWER_DATE is now set to follow
SET_DIFF_ANSWER_DATE. KELVIN_WAVE_VEL_NUDGING_TIMESCALE is now set to a negative
value by default, forcing the user to provide a valid value at runtime.
SHELFWAVE_CORRECT_AMPLITUDE now defaults to True.
  Obsoleted 7 runtime parameters that always take the same value, as agreed upon
in a MOM6 consortium wide conversations on June 2, 2025, and added tests to
catch these parameters in MOM_obsolete_params.  The parameters that were
obsoleted include BETTER_BOUND_KH, BETTER_BOUND_AH, USE_DIABATIC_TIME_BUG,
FIX_UNSPLIT_DT_VISC_BUG, CFL_BASED_TRUNCATIONS and KD_BACKGROUND_VIA_KDML_BUG.
The runtime parameter MAXVEL still exists, but it is logged in a different order
than before, changing the contents of the MOM_parameter_doc files. All answers
are bitwise identical in cases that run, but cases that use these parameters
will experience a fatal error.
  Added code to set all intent(out) arguments in the stub version of the
MOM_generic_tracer routines MOM_generic_tracer_stock(),
MOM_generic_tracer_min_max() and MOM_generic_tracer_get() to avoid compile-time
warnings.  These stub routines are never supposed to be used, and there would be
a fatal error during the registration phase if they are used.  The values that
are set in these stub routines are extremely large or otherwise nonsensical so
that it would make it easier to debug them if they were used accidentally.  All
answers are bitwise identical in any cases that run successfully.
…aults_2025

+*Update parameter defaults for 2024 and 2025, including EQN_OF_STATE
@sanAkel
Copy link
Copy Markdown
Collaborator

sanAkel commented Aug 19, 2025

@jiandewang

  1. Since PR changes defaults, it is expected to change answers.
  2. Can you attach: a. (runtime) MOM_parameter_doc.all? b. ocean.stats before using updated code; c. Same as b, but using updated code?

@jiandewang
Copy link
Copy Markdown
Collaborator Author

@sanAkel see URSA
/scratch3/NCEPDEV/climate/Jiande.Wang/MOM6-update/MOM6-update-20250818/For-Santha

@sanAkel
Copy link
Copy Markdown
Collaborator

sanAkel commented Aug 20, 2025

@sanAkel see URSA

/scratch3/NCEPDEV/climate/Jiande.Wang/MOM6-update/MOM6-update-20250818/For-Santha

I have limited availability during my leave! Can you upload them here?

@jiandewang
Copy link
Copy Markdown
Collaborator Author

@sanAkel git doesn't allow me to upload plain text files. what format do you want here ? word or pdf ?
MOM_parameter_doc.all has ~2500 lines, simply copy/paste here will be too much, right ?

@jiandewang
Copy link
Copy Markdown
Collaborator Author

ocean.stats are identical

@sanAkel
Copy link
Copy Markdown
Collaborator

sanAkel commented Aug 20, 2025

@sanAkel git doesn't allow me to upload plain text files. what format do you want here ? word or pdf ?

MOM_parameter_doc.all has ~2500 lines, simply copy/paste here will be too much, right ?

@jiandewang Thanks doing your best. But I can't make sense of it this way. If possible,

  • Please let me get back to you Monday (next week).
  • Meantime please keep the files in that ⬆️ path.

🙏

Copy link
Copy Markdown
Collaborator

@sanAkel sanAkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jiandewang for saving files at /scratch3/NCEPDEV/climate/Jiande.Wang/MOM6-update/MOM6-update-20250818/For-Santha They helped me. You can now get rid of them.

FYI to folks in general, note following default value: PEN_SW_ABSORB_MINTHICK = 1.0 ! [m] default = 1.0

@FernandoAndrade-NOAA
Copy link
Copy Markdown

Testing on 2866 is complete, please continue with the merge process.

@jiandewang jiandewang merged commit fe9e7bf into NOAA-EMC:dev/emc Sep 15, 2025
52 checks passed
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.

5 participants