-
Notifications
You must be signed in to change notification settings - Fork 0
PR for updating icepack to version from OM3-0.4.0 (DO NOT MERGE) #7
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
base: main
Are you sure you want to change the base?
Conversation
…onductive flux limits to CM2
kieranricardo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use p2 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point. p2 shouldn't be needed here anymore. I've removed it in 33bbca5
columnphysics/icepack_therm_bl99.F90
Outdated
| ! Flux extra energy out of the ice | ||
| fcondbot = fcondbot + einex/dt | ||
| ! fcondbot = fcondbot + einex/dt | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can delete these commented lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 33bbca5!
Co-authored-by: Kieran Ricardo <u5824685@anu.edu.au>
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