Fix BT solver wide halo log_param and hifreq diagnostics timestamps #209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The first commit fixes a couple of typos in BT solver.
The second commit moves the
log_param
calls of the wide halo size parameters after theclone_MOM_domain
call, where these parameters may be modified. Otherwise, the entries inMOM_parameter_doc.layout
record only the use specified values or the default, which is usually zero. As a result, this commit may changeMOM_parameter_doc.layout
from the old runs.The third commit addresses a potential problem with the timestamps of the BT step diagnostic outputs. Previously, the (hifreq) output between BT steps has a time interval =
dtbt
. While this is technically the right choice, it ignores the filter steps. As a result, the time interval at each baroclinic time step is not enough for all output from nstep+nfilter BT step. The filter step output has a timestamp that exceeds the end time of the current baroclinic step. The output at the filter steps then is never saved (overwritten by the output from the next baroclinic time step with the same timestamps), except for the last baroclinic timestep of the run.This commit provides a walk-around. A nominal BT step size
dtbt_diag
is introduced to "squeeze" all nstep+nfilter output into the same baroclinic step time interval.