-
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
Fix to groundwater parameter initialisations that can impact the soil conductivity #491
Conversation
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.
Approved: code looks okay, comments are appropriate.
Testing is appropriate to the issue at hand - only aspect not assessed is the magnitude of the impact when vectorised soil parameters are used (but out of scope for now since the base case and inputs aren't available.).
NB - we may need to assess/check that these variables are initialised properly within the coupled model framework since we are defaulting to use cable_users%soil_thermal_fix = .true.
@ccarouge @JhanSrbinovsky Quick follow up on this PR as it relates to AM3 etc. It would appear that most of the An element to pick up on later (between alpha and beta releases of AM3 and/or part of the merge of the GW science) is the meaning/role and consistency in value of |
I was of the impression that the *_vec variables are not being used?
It looks like soil%watr is used IF soil_thermal_fixis TRUE. This is likely even why I switched it to false back when 4 timesteps was our longest run – from stempv
You should look at cable_um_init_soil. It is initialized there as .05 and later clobbered as .001 – intentional? My comment where it is clobbered reflects what is actually needed?
|
I hadn't fully realised this before - but Mark Dekker coded the I don't know what |
The whole implementation of the |
CABLE
Thank you for submitting a pull request to the CABLE Project.
Description
Fixes #490
Working on the groundwater implementation, I have found that the function
total_soil_conductivity
depends on some GW parameters that aren't correctly implemented. This is to fix this.Type of change
Please delete options that are not relevant.
Testing
Since this requires MPI to test the impact, I haven't used modelevaluation.org to analyse the results. I have run benchcab with the spatial configuration for:
cable_user%soil_thermal_fix = .TRUE
cable_user%soil_thermal_fix = .FALSE
cable_user%soil_thermal_fix = .TRUE
cable_user%soil_thermal_fix = .FALSE
Case 3 - Case 1 allow to gauge the total effect of the change. Case 2 - Case 1 give a measure of the change compared to the initial fix to the soil conductivity. Case 4 - Case 2 shows whether there are any impacts beyond the soil conductivity (without explicitly finding these other sources).
The comparison of case 4 and case 2 with
cdo diffn
shows there are no differences whencable_user%soil_thermal_fix
is false.The largest effect for this branch is found on the ground flux but the effect is limited (right plot) compared to the effect of
soil_thermal_fix
(left plot):These are time-mean values of the differences between the simulations.
Please add a reviewer when ready for review.
📚 Documentation preview 📚: https://cable--491.org.readthedocs.build/en/491/