Update flux const#1427
Conversation
Updating for addition of FLUX_CONST_SALT and FLUX_CONST_TEMP with clean history. Unit_scaling has been added, but answers change for different values of T_RESCALE_POWER.
Reinstated check on allow_flux_adjustments and restore_temp before allocating the heat_added and salt_flux_added arrays. Initialized arrays within flag construct too. Removed previous allocation of salt_flux_added.
Hallberg-NOAA
left a comment
There was a problem hiding this comment.
This PR is failling with "invalid memory references" in the OM4_025 test case with the gnu compiler in the pipeline tests. Unfortunately the trace-back for these errors does not provide concrete information about where in the code the error is occurring (see
https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/jobs/65471 ), but if I had to guess, the conditional allocation of fluxes%salt_flux_added and fluxes%heat_flux_added would seem like the most likely suspect. Running with the intel compiler or with with an executable compiled for debugging might give more useful information.
Please correct these errors and verify that the OM4_025 test case runs properly with the updated code.
|
Thanks @Hallberg-NOAA . @wfcooke , can you please remore my changes for the conditional allocation of these arrays, Sorry about the mixup. |
Tests with intel and gnu compilers (repro and debug) passed.
|
After the update, this PR is now passing the pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/12946, but because it changes the contents of the MOM_parameter_doc files, it has to be merged manually. |
Updating for addition of FLUX_CONST_SALT and FLUX_CONST_TEMP with clean history.
Unit_scaling has been added, but answers change for different values of T_RESCALE_POWER.