Skip to content
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

Remove fates dependency on do_harvest #2

Conversation

glemieux
Copy link

@glemieux glemieux commented May 9, 2024

Description of changes

As fates harvest modes have increased we should remove the dependency on do_harvest to provide a clearer distinction between CLM and fates harvest mode types.

Specific notes

The only remaining overlap between the host land model and fates is during the call to dynHarvestInit, so we add a check on the fates harvest mode here.

Testing performed, if any

Build and run test still needed

@glemieux
Copy link
Author

glemieux commented May 9, 2024

TO DO:

  • update namelist dependencies as necessary

@glemieux glemieux mentioned this pull request May 9, 2024
4 tasks
@samsrabin
Copy link
Owner

Could you include an error in the build namelist step if it's a FATES compset but the user specifies do_harvest in user_nl_clm?

@glemieux
Copy link
Author

glemieux commented May 9, 2024

Could you include an error in the build namelist step if it's a FATES compset but the user specifies do_harvest in user_nl_clm?

Definitely. I had to switch tasks momentarily, but I should have this in before tomorrow.

@glemieux
Copy link
Author

Making the do_harvest logic setup section only dependent on use_cn seems to protect enough from trying to use with fates.

This still needs a positive build and run check to make sure it isn't failing when it shouldn't. I'll also try using your brute force script.

If luh + fbg are present fail if flandusepftdat isn't valid.
Don't allow fluh_timeseries to be defined if in potential veg mode
to avoid confusing users that it is needed.
@glemieux
Copy link
Author

This is building and running successfully. I created a spreadsheet with the output of the bruteforce script you providing in our email discussions that adds some columns with the checks we want to make sure pass or fail. Everything looks to be working as expected: https://docs.google.com/spreadsheets/d/11wSpoZvFji5TKjZWOIC3ILtmX4r6IyQgvfHsSo6pH6k/edit?usp=sharing

@samsrabin samsrabin merged commit 07e811e into samsrabin:fates-landuse-v2 May 22, 2024
@glemieux glemieux deleted the fates-landuse-v2-harvestmodeseparation branch May 23, 2024 20:06
samsrabin pushed a commit that referenced this pull request Aug 23, 2024
samsrabin pushed a commit that referenced this pull request Sep 17, 2024
migrating unit testing to folder unit_testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants