Closed ccarouge closed 3 months ago
@JhanSrbinovsky There was a bug in the MPI version for checking the variable ranges. To simplify the fix, I decided to remove wlogn
which tracked the unit number for the CABLE log files on the workers. It's not needed in the offline version (can use logn
for all cores). Can you confirm we don't use it in ESM1.5 and CM2? I've checked the code base for ESM1.5 and haven't seen it but I don't know where is the CM2 code base.
I have never come across it online Claire. In circa AM3 models we dont even talk to the outside world - definitely not. Same in circa CM2 models, albeit less efficiently. Although there seem to be a bunch of mentions of slogan in sci and POP?
there seem to be a bunch of mentions of slogan in sci and POP
POP declares it but doesn't use it, at least in the main
branch. The CABLE-POP_TRENDY we'll worry about later.
SLI is using it but I now set logn
to the value wlogn
used to hold, so it's simply a renaming from wlogn
to logn
for SLI.
@Whyborn I couldn't test the changes for CASA, LUC, POP and SLI so keep an eye out for inconsistencies in there when reviewing. POP is not used from main
so I don't worry too much about it and will be changed for CABLE4 anyway. LUC and CASA all seemed to declare the variable locally but without using it (might need a second check). For SLI, renaming wlogn to logn should work, just like for the rest of the CABLE code.
CABLE
Thank you for submitting a pull request to the CABLE Project.
Description
Fixes #359 Changes for checking ranges have changed how the
output%X
logical switches are set. This was not reflected in the MPI driver which meant no outputs were produced from simulations using MPI.Fix include:
set_group_output_values
in cable_mpimaster.F90.constant_check_range()
in cable_mpiworker.F90. This check was added during the work to check ranges in the serial version. This has no impact on the CABLE outputs but allows the MPI and serial versions to contain the same functionality.logn
andwlogn
settings.wlogn
variable is removed since all cores can uselogn
to capture their log file unit number. This allows the logs from the check ranges to appear correctly in the logs.Type of change
Please delete options that are not relevant.
Testing
Fluxsite tests with benchcab ran as expected showing no differences with the main branch.
Ran spatial tests with benchcab for this branch and the main branch. The netcdf files for this branch now contain outputs for all requested variables.
Output file header for main:
Output file header for this branch:
Please add a reviewer when ready for review.
📚 Documentation preview 📚: https://cable--360.org.readthedocs.build/en/360/