Skip to content

Merge main candidate from 09/18/2020#160

Merged
alperaltuntas merged 426 commits into
NCAR:dev/ncarfrom
gustavo-marques:merge-main-candidate-2020-09-18
Oct 23, 2020
Merged

Merge main candidate from 09/18/2020#160
alperaltuntas merged 426 commits into
NCAR:dev/ncarfrom
gustavo-marques:merge-main-candidate-2020-09-18

Conversation

@gustavo-marques
Copy link
Copy Markdown
Collaborator

@gustavo-marques gustavo-marques commented Oct 9, 2020

Merging the main candidate from GFDL:

https://github.com/NOAA-GFDL/MOM6/pull/1211

There has been some reorganization of the source code and, therefore, changes in MOM_interface are needed to compile CESM/MOM6 from now on. In addition, the default value for many parameters has been changed. Although we foresaw these changes and already modified the default parameters used in CESM/MOM6 accordingly (ESCOMP/MOM_interface#65), care must be taken before this PR is merged to make sure answers in aux_mom are not changed.

I have confirmed that this PR does not change the answers in MOM6-examples using intel. It remains to be tested whether we get b4b for the aux_mom tests.

Hallberg-NOAA and others added 30 commits July 2, 2020 07:46
  Modified doc_module so that new lines are added only when modules are
documented, and are added in all parameter_doc files in which modules are
documented.  All answers and output are identical, but there are white space
changes in MOM_parameter_doc and SIS_parameter_doc files.
  Added the new optional argument like_default to the log_param and doc_param
routines to help control where the documentation appears.  This new argument is
used for logging EPBL_USTAR_MIN, the diagnosed output value of MAXIMUM_DEPTH
when the input value is negative, and the diagnosed number of columns where
sponges occur with MOM_ALE_sponge.  An '!' was also added to the logging of
EPBL_USTAR_MIN.  All answers are bitwise identical but there are minor changes
in the contents of some MOM_parameter_doc.short files.
Added diagnostics for partial derivatives of density
  Added code to determine whether all parameters in the MOM_grid, MOM_restart,
MOM_write_cputime and MOM_tracer_registry modules are being used with their
default settings, and added all_default arguments to the log_version calls for
these modules.  All answers and output are identical, but there are white space
changes in MOM_parameter_doc.short and SIS_parameter_doc.short files.
- Members of a type cannot be individually labelled as shared/private
- One variable was converted to shared since it was defiend in a non-OMP
  section and then labelled as private which meant it was uninitialized.
- Stanley et al., 2020, adds the Brankart modification to volume mean
  density via linear corrections involving SGS sample variances and
  covariances of T and S. This commit adds the new interfaces that
  allow a call to calculate_density to include the variances and
  covariance as arguments. This correction sits above the particular
  EOS and thus can use any EOS so long as second derivatives are
  available within the EOS module.
- The routines pressure_gradient_plm() and pressure_gradient_ppm()
  were poorly named and had comments referring to the pressure gradient
  calculation even though the only calculate edge values in the vertical
  for T/S using ALE functions. The routines are actually more general
  and can be used outside of the PGF. The comments have been shortened
  and no longer refer to the PGF.
- The integrals of density routines used (mostly) by the PGF calculation
  were part of MOM_EOS. Originally, when writing the analytic FV PGF paper,
  this was the right place to put the integrals. The additional variants
  using the ALE reconstruction functions mean that it is cleaner to have
  these routines sit in a layer above EOS and ALE.
- ppoly_E meant something to someone a while ago but we felt it
  would be better to clean up the ALE APIs. This is a pre-cursor
  to switching to a more precise description of reconstructions.
marshallward and others added 13 commits September 17, 2020 15:53
Added several documentation READMEs to using the autoconf build.

Also added some changes to the Makefile template so that `make ac-clean`
wiped out the autoconf output (configure, aclocal.m4, autom4te.cache).
Fix typo in README link
Markdown formatting fixes.
The COVERAGE variable was incorrectly quoted, and was causing incorrect
quotes in the compile flag arguments.

This patch removes the redundant quotes.
@alperaltuntas
Copy link
Copy Markdown
Member

@gustavo-marques we are getting answer changes in all our tests except BMOM.
test directory: /glade/scratch/altuntas/cesm.tests/cheyenne/aux_mom/201015

@gustavo-marques
Copy link
Copy Markdown
Collaborator Author

Thanks, @alperaltuntas. This is likely due to changes in the default parameters. I will look into it this afternoon.

@alperaltuntas
Copy link
Copy Markdown
Member

@gustavo-marques , two differences between our GMOM and BMOM are the following flags:
RESTORE_SALINITY
ADJUST_NET_FRESH_WATER_TO_ZERO

At least one of these must be causing forced cases to have answer changes.

CS%use_net_FW_adjustment_sign_bug, &
"If true, use the wrong sign for the adjustment to "//&
"the net fresh-water.", default=.false.)
"the net fresh-water.", default=.true.)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The default for this parameter did not have to be changed. We (NCAR) had already set this to False and, unintentionally, @Hallberg-NOAA set it back to True in https://github.com/NOAA-GFDL/MOM6/pull/1127

CS%use_net_FW_adjustment_sign_bug, &
"If true, use the wrong sign for the adjustment to "//&
"the net fresh-water.", default=.false.)
"the net fresh-water.", default=.true.)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Same here. The default should be False.

@gustavo-marques
Copy link
Copy Markdown
Collaborator Author

After manually setting USE_NET_FW_ADJUSTMENT_SIGN_BUG=False, I was able to get b4b with dev/ncar. I will suggest that the default for this flag should be changed to false in the PR from GFDL, so let's wait for this patch before merging this PR.

I also noticed that changes in MOM_hor_visc.F90 introduced in #158 lead to changes in answers since we have LEITH_AH = True (@alperaltuntas mentioned that when merging #158).

adcroft and others added 2 commits October 19, 2020 17:17
- The default for USE_NET_FW_ADJUSTMENT_SIGN_BUG had been changed to
  False but during the merge of main onto dev/gfdl the default was
  inadvertently flipped. @gustavo-marques pointed this out when reviewing
  NOAA-GFDL/MOM6#1211.
- This affects EMC and NCAR versions of drivers and is not tested at GFDL.
Change default for USE_NET_FW_ADJUSTMENT_SIGN_BUG in drivers
@gustavo-marques
Copy link
Copy Markdown
Collaborator Author

@alperaltuntas, this PR is ready to be merged.

@alperaltuntas alperaltuntas merged commit 165b1b2 into NCAR:dev/ncar Oct 23, 2020
@gustavo-marques gustavo-marques deleted the merge-main-candidate-2020-09-18 branch April 21, 2021 23:26
gustavo-marques pushed a commit that referenced this pull request Aug 5, 2022
* Change dumbbell initialization

* Change in Dumbbell Layer Mode
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.

9 participants