Repository navigation
respect site.pft$soil - #4289
Open
divine7022 wants to merge 4 commits into
Open
divine7022 wants to merge 4 commits into
divine7022 wants to merge 4 commits into
Conversation
dlebauer
enabled auto-merge
November 29, 2026 03:46
infotroph
approved these changes
Nov 29, 2026
infotroph
left a comment
Member
There was a problem hiding this comment.
I'm OK with this as a quick fix, but FTR I think medium-term we should be moving the opposite direction and finding a way to avoid relying on the names in site.pft at all.
That might need some deeper changes to segmentation though (maybe including ability to change the soil PFT through time?)
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 29, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 29, 2026
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.
Description
Segmented runs always got their soil params from the PFT named soil, no matter what site.pft$soil said. So a site with its own soil PFT (soil_flooded for our rice sites) got the dryland soil params in every segment, even though the unsegmented config for the same run had the right ones.
This reads the soil PFT from site.pft$soil once per run and falls back to "soil" when it isn't set, so runs that don't set it don't change. Fallow segments (where the segment PFT is soil) now send just the site's soil PFT, so the two sets of soil params don't get mixed together.
I ran into this while tracking down why our flooded soil params never showed up in rice runs.
Motivation and Context
Review Time Estimate
Types of changes
Checklist: