Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTBT_RESET_PERIOD affects answers when DTBT is the same #143

Closed
adcroft opened this issue Apr 18, 2015 · 5 comments
Closed

DTBT_RESET_PERIOD affects answers when DTBT is the same #143

adcroft opened this issue Apr 18, 2015 · 5 comments

Comments

@adcroft
Copy link
Collaborator

adcroft commented Apr 18, 2015

I just removed DTBT_RESET_PERIOD from OM4_025 and found that DTBT was identical but the timestats changed.

We should be able to use DEBUG=True to find out where the differences are coming from.

@adcroft adcroft added the bug label Apr 18, 2015
@adcroft
Copy link
Collaborator Author

adcroft commented Apr 18, 2015

BT_Force_u and BT_Force_v differ at the very beginning of the model which I think is due to wt_u and wt_v differing.

image

@adcroft
Copy link
Collaborator Author

adcroft commented Apr 18, 2015

Ah HA! The logfile reports dtbt as the same but the logfile lied!

@Hallberg-NOAA
Copy link
Collaborator

The logfile is only created during initialization, whereas when the parameter DTBT is set to be negative in the MOM_input file and is set dynamically, the value of dtbt can evolve, with a frequency dermined by DTBT_RESET_PERIOD, and the default is to redo the calculation every thermodynamic time step. The log file did not lie, in that the initial value of dtbt was properly logged. At one point in GOLD we also logged whenever dtbt was changed, and perhaps this behavior should be replicated here, perhaps conditional on the value of DEBUG.

@adcroft
Copy link
Collaborator Author

adcroft commented Jul 30, 2015

How about reporting DTBT depending on the value of VERBOSITY? I agree we don't want to write DTBT every step if we are re-evaluating all the time but it would be good to have the option to see it even when not using DEBUG.

@adcroft
Copy link
Collaborator Author

adcroft commented Jul 31, 2015

I just sat down to implement reporting DTBT when it changes and found that @Hallberg-NOAA implemented this years and years ago. See L735 that require VERBOSITY>3 to get the messages. @Hallberg-NOAA gets a 👏

I'm therefore closing the issue.

@adcroft adcroft closed this as completed Jul 31, 2015
gustavo-marques pushed a commit to gustavo-marques/MOM6 that referenced this issue Mar 13, 2020
MJHarrison-GFDL pushed a commit to MJHarrison-GFDL/MOM6 that referenced this issue Jun 15, 2021
  Added a logical branch in ice_temp_SIS2 to properly handle the case where
there is a single thermodynamic layer in the sea ice, addressing SIS2 issue
mom-ocean#143.  All answers are bitwise identical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants