Initialize land_decomp_start to 1#725
Merged
Merged
Conversation
SeanBryan51
approved these changes
May 27, 2026
Collaborator
SeanBryan51
left a comment
There was a problem hiding this comment.
Thanks Lachlan, this should be pretty harmless so I'm happy for this to go in. Just a suggestion: would be clearer to set land_decomp_start = 1 in the coupled model (before the land use code is called)? This would make it a bit more obvious that these variables should be set elsewhere at runtime.
Contributor
Author
|
Yea, I can suss out the best place to do this coupled mode. I think it would be best to introduce a function like |
Contributor
Author
|
@SeanBryan51 Made that change- haven't decided where it should be called in coupled mode yet, but I think that can be decided later. |
SeanBryan51
approved these changes
Jun 2, 2026
Collaborator
SeanBryan51
left a comment
There was a problem hiding this comment.
Thanks Lachlan, happy for this to go in when you are.
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.
CABLE
Description
The recent addition of
to_land_index_globalinsrc/offline/cable_iovars.F90is currently not compatible with running in coupled mode. This routine is called in the land use code, which is intended to be included in coupled applications, so it does need to be included in coupled mode. I believe initialisingland_decomp_startto 1 will make this function as expected in coupled applications, where we never call the decomposition initialisation. Do you think this is correct @SeanBryan51?Type of change
Please delete options that are not relevant.
Checklist
Testing
Are the changes bitwise-compatible with the main branch? If working on an optional feature, are the results bitwise-compatible when this feature is off? If yes, copy benchcab output showing successful completion of the bitwise compatibility tests or equivalent results below this line.
Are the changes non bitwise-compatible with the main branch because of a bug fix or a feature being newly implemented or improved? If yes, add the link to the modelevaluation.org analysis versus the main branch or equivalent results below this line.
📚 Documentation preview 📚: https://cable--725.org.readthedocs.build/en/725/