PR for updating icepack to version from OM3-0.4.0 (DO NOT MERGE)#7
Draft
PR for updating icepack to version from OM3-0.4.0 (DO NOT MERGE)#7
Conversation
…onductive flux limits to CM2
kieranricardo
approved these changes
Apr 23, 2025
kieranricardo
left a comment
There was a problem hiding this comment.
Looks good to me! Only suggestion is to delete some of the old comments to clean up the diff a little
columnphysics/icepack_itd.F90
Outdated
|
|
||
| use icepack_kinds | ||
| use icepack_parameters, only: c0, c1, c2, c3, c15, c25, c100, p1, p01, p001, p5, puny | ||
| use icepack_parameters, only: c0, c1, c2, c3, c15, c25, c100, p1, p01, p001, p5, puny, p2 |
Collaborator
Author
There was a problem hiding this comment.
Great point. p2 shouldn't be needed here anymore. I've removed it in 33bbca5
columnphysics/icepack_therm_bl99.F90
Outdated
Comment on lines
713
to
715
| ! Flux extra energy out of the ice | ||
| fcondbot = fcondbot + einex/dt | ||
| ! fcondbot = fcondbot + einex/dt | ||
|
|
There was a problem hiding this comment.
Can delete these commented lines
Co-authored-by: Kieran Ricardo <u5824685@anu.edu.au>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Not to be merged
This PR describes the changes in updating the base of CM3's icepack version from 6703bc5 to 43ead56. If the changes are approved, I'll change the branch name from
update-cm3-icepacktocm3-coupling-0.4.0.This branch was created by rebasing
cm3-couplingonto 43ead56.Several conflicts came up in the merge. I'll record each of the conflicts here for the purpose of documentation. For review, I've separated them into more substantial conflicts, and much more straightforward ones where I'm more confident in my choice for resolution. Where relevant, I've tried to include some background on the upstream or local changes that caused the conflicts.
Conflicts
Clashes more likely to need review
Change of
hi_minparameterThe minimum ice thickness
hi_minwas previously set inicepack_itd.F90, where it was given a default value and overwritten in specific cirumstances.8fad768onmainmoves its definition and default value toicepack_parameters.F90, making it definable in a CICE namelist. This includes for example the following changes inicepack_itd.F90:The following clashes between our branch and main occur in parts of
icepack_itd.F90:I think it makes sense for us to pick up the changes from main. Since our CM3 coupling requires
hi_min=p1to match the value in the UM, we need to be careful when bringing in this change.I've changed the new default value of
hi_mininicepack_parameters.F90fromp01bep1(required to match UM value), and will add a comment in the namelist warning thathi_min=p1is required for CM3's coupling.More straightforward clashes:
Details
In `icepack_therm_bl99.F90`:This is an indentation change in our
cm3-couplingbranch, added to fix the indentation underif calc_Tsfc. Keep changes fromcm3-coupling.05ac0ec on
mainremoved thenilyrandnslyrarguments to this subroutine, as they are already available fromat the top of the module. Combine the changes from both branches resulting in:
icepack_therm_vertical.F90
Use changes from main, which remove redundant subroutine arguments.
Separate variable initialisations were added in each branch. Use both changes
sstadded as argument inmainin 4c87095 to allow for one-step congelation formulation.e_num,fcondtopn_extraadded incm3-coupling. Combine both changes intosst, & dsnow, rsnw, & e_num, fcondtopn_extra )Same changes added further down in subroutine definition.
icepack_itd.F90
cm3-couplingaddsp2for use as a minimum ice-thickness.8fad768onmainremovesTocnfrz, replacing it withTf(provided as an input from CICE). Main addsrhosnew.05ac0econmainadds the lineand removes these parameters from subroutine arguments.
Keep the changes from both branches, i.e:
use icepack_parameters, only: c0, c1, c2, c3, c15, c25, c100, p1, p01, p001, p5, puny, p2 use icepack_parameters, only: Lfresh, rhos, ice_ref_salinity, hs_min, cp_ice, rhoi use icepack_parameters, only: rhosi, sk_l, hs_ssl, min_salin, rsnw_fall, rhosnew use icepack_tracers, only: ncat, nilyr, nslyr, nblyr, ntrcr, nbtrcr, n_aeroAdditional changes required after resolving merge conflicts
Some additional small changes were needed to get the model to build and run:
Details
Deprecated zsalinity
f5e093f on
maindeprecatedzsalinity.One
solve_zsalflag remained after the rebase due to an indentation change in b40315a, causing the build to fail.This line should be removed to match the changes in main