-
Notifications
You must be signed in to change notification settings - Fork 139
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
Fixed "Choosing an appropriate time step" to match ice_dyn_shared.F90 #83
Conversation
@aekiss, thank you for pointing this out. It's actually correct in the documentation, and inconsistent in the code. dt is used as both the thermodynamic timestep and the dynamic timestep, defined as it is passed through subroutine arguments. E.g.
in ice_step_mod.F90
This is the result of relatively slow code evolution -- the dt_dyn loop was added much later than evp itself, and the original code in evp was kept rather than renaming dt everywhere. If it's confusing, we should probably clean that up. |
Oops, that's embarrassing, sorry I didn't read the code more carefully before posting. Thanks for your quick response. So in section 3.1.5
actually be written in terms of dt_dyn, as
so that the ratio depends only on If so, the first sentence of the final paragraph would be clearer as
|
Yes, I agree with your suggested changes. I'll reopen the PR so that you can fix them! Thanks much. |
Thanks. I also wonder whether \Delta t should be \Delta t_dyn throughout section 2.2.3 for clarity, or at least mention at the start of section 2.2.3 that \Delta t should be interpreted as \Delta t_dyn if ndtd>1? For example section 2.2.3.2 defines |
@dabail10, since you implemented the extra loop around the dynamics and I'm not aware of any other group actually using it, is this something that you would still consider useful? I'm wondering if we should just remove it from the code. The dynamics should converge better once we get Martin Losch's changes for the revp option in there. |
We do need the extra loop around the dynamics code still. This way we can use a larger timestep for the thermo and a smaller timestep for the dynamics. This is particularly key for high resolution. Dave |
Yes, we are considering using this extra loop in our 0.1deg model. |
Then it makes sense to make the code and the documentation consistent. We can certainly use dt_dyn in the documentation instead of dt, in reference to the dynamics. It's true that dt is used both as the thermodynamic time step and as a generic one. I'm open to creating an explicit dt_therm time step but also happy to stick with dt, since the way the code is written, the thermo step is the main one and others cycle around it. |
Just checking on the status of this PR. Should this be moved to an issue and closed? Is this ready to be merged? |
This PR should not be merged as it is. The documentation needs to be changed, but differently from this. I recommend closing this one and creating an issue for it. |
OK, will do. Would love to move this PR to an issue to preserve the discussion. not sure if I can but will try. |
You can just reference the PR in the issue, and it'll come up... |
…e cpl_scalar field when created for UFS (#969) These are two commits cherry-picked from as in UFS and needed to close NOAA-EMC#84. This PR adds the ability for CICE to write restart files at the end of the run (independent of other settings) and controlled via the CMEPS configuration option write_restart_at_endofrun. Setting this configuration option to True creates a restart file in the same way for CMEPS, MOM6, and CICE. This PR also initializes the scalar field value for the index for NTile (implemented for FV3) not used or set in CICE. In certain cases, the scalar field value for this index has been found to be non-zero (NaN in debug compiles). This is the cause of the failure reported in ufs-community/ufs-weather-model#2338. * Add end of run functionality to CICE (#77) * initialize cpl_scalar field when created (#83) --------- Co-authored-by: Daniel Sarmiento <42810219+dpsarmie@users.noreply.github.com> Co-authored-by: Denise Worthen <denise.worthen@noaa.gov>
Documentation change only: dt_dyn should have been dt in two places.
Developer(s):
Is the documentation being updated with this PR? (Y)