-
Notifications
You must be signed in to change notification settings - Fork 6
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
Enable fwsoil_switch=Haverd2013 flag for ESM1.6 #483
Comments
Uses ssnow%wbliq as well which is not set up in ESM1.5. In CM2 this is coded to allow for different rho_water and rho_ice as used in groundwater scheme. CM2 kept it as rho_water = rho_ice. |
With these code changes a one-month test now gives realistic GPP. I have done tests with the new code switching between 'standard' and 'Haverd2013' and have compared both cases with (hopefully) the equivalent run with my previous code. There is some difference between old and new code with the 'standard' fwsoil_switch. The difference is larger when using the new code and switching between 'standard' and 'Haverd2013' To get this running, I was writing out the different terms that go into / come out of the getrex_1d subroutine used in cbl_dryLeaf when the Haverd2013 flag is used. The 'fwsoil' value didn't appear to change in time which surprised me. I haven't worked through the code carefully yet but any thoughts @JhanSrbinovsky , @har917 |
Not yet. Pleasure to look at something else. My run crashed run after 10years. Perturbed, ran again, crashed after a further ~20. Qsubbing exactly the same thing crashed in the same spot. So threre is a genuine problem. Unfortunately 22minutes into the yearly CRUN, will take days running with -fpe0 to even get that far and then might not even tell us anything. So I changed the dump frequency to every month, to narrow it down, and guess what – it is now several years in. So is there a genuine problem or not. Very annoying. I (hopefully) am running the ESM16 build through PAYU. Perhaps the consistency of compilers across the models etc can smooth this out or we are in an awkward position.
|
Can you clarify please what you mean by old and new code? |
'Old' in this context means my recent executables that I've been using for my 20-100 year test runs. It is up to date with 'main' from maybe a month or so ago with some local subroutines changed so that I could switch between different parameter values for refl/taul etc. |
ok thanks - by "old" I thought you might mean CMIP6-ESM1.5 |
Ideally I don't think we want to see any difference between the two runs using fwsoil_switch='standard', which makes me wonder whether there is anything else in the science code that uses the variables that I've added for using Haverd2013, which maybe hadn't been initialised in the ESM1.5 case. |
As discussed in the CABLE4 meeting, wbliq is not changing in my test case which would explain why fwsoil isn't changing. |
Was @har917 there? Ian has been reading through this code recently re: the water balance issue in AM3. |
Yes, Ian pointed me to checking wbliq. |
could be just me but I can't get the file |
Which file? |
its ok, I can see it inline now. is this a relative difference. you clearly got wbliq varying in time. Was this line not in ESM1.5? Thats very strange. If so could that explain/add to the decreased variability you saw before? hang on you mean that wbliq line wasn't in the CABLE3 (taken from main) version. Thats very odd. It's definitely in AM3. ahhhh OK, its treated as local only |
Putting the wbliq change into a separate issue as this looks like a bug that also impacts some offline cases. |
it definitely would. So have you just added ssnow% to the wbliq. Perhaps we can get this bug fix through super-quick. |
@JhanSrbinovsky @rml599gh This needs consideration within the context of the other ice-fixes that are in-train in the AM3 development. It could be a non-issue once CABLE3-MAIN is sync'd with that work (and ESM1.6 picks up the latest CABLE3) |
Also noting, that my current test implementation of initialising wbliq in ESM1.5 maintains the assumption that rho_ice = rho_water, so that should be cleaned up once AM3 changes are sync'd. I have some longer tests now with results that weren't really what I expected. Here is 12 month running mean GPP for 9 years. Also changing to Haverd2013 doesn't seem to have helped the 30-80N seasonal cycle of NEP (@juergenknauer). Colours as GPP plot. |
no doubt it will come in with AM3, I'm only worried about how long that will take. |
The fwsoil_switch=Haverd2013 flag does not work using the coupling code in the ESM1.5 directory. GPP become very small if the model manages to keep running.
Comparing with ACCESS-CM2 coupling where the Haverd2013 flag was enabled it looks like a few changes may be required.
Set veg%gamma=3.e-2
Initialise canopy%fwsoil = 1.
The CM2 coupling code includes quite a bit of extra code in initialize_soil in cable_um_init_subrs.F90. Lots of this is for the groundwater scheme but it appears that some of the code is needed for the Haverd2013 flag such as setting the ssat_vec and swilt_vec arrays.
The text was updated successfully, but these errors were encountered: