Skip to content

Checks on Patch Spawning#458

Merged
rgknox merged 6 commits intoNGEET:masterfrom
rgknox:rgknox-spawnpatch-cfix
Jan 7, 2019
Merged

Checks on Patch Spawning#458
rgknox merged 6 commits intoNGEET:masterfrom
rgknox:rgknox-spawnpatch-cfix

Conversation

@rgknox
Copy link
Contributor

@rgknox rgknox commented Jan 1, 2019

Description:

This changeset adds some checks during the patch spawning routine that ensure new patches are only created, and new areas to those patches are only donated, if those areas are reasonably non-zero.

In long-term tests on cheyenne some near-zero (maybe zero) area patches were being formed, and crashing the runs. This fix prevents those crashes and numerical overflows associated with them.

Also, the lower bounds for acceptable patch sizes were tweaked to more reasonable levels.

Collaborators:

Expectation of Answer Changes:

Checklist:

  • My change requires a change to the documentation.
  • I have updated the in-code documentation .AND. (the technical note .OR. the wiki) accordingly.
  • I have read the CONTRIBUTING document.
  • FATES PASS/FAIL regression tests were run
  • If answers were expected to change, evaluation was performed and provided

Test Results:

These changes allowed a 100 year, 14pft simulation on master to complete successfully.

Standard regression tests TBD

CTSM (or) E3SM (specify which) test hash-tag:

CTSM (or) E3SM (specify which) baseline hash-tag:

FATES baseline hash-tag:

Test Output:

@jkshuman
Copy link
Contributor

jkshuman commented Jan 2, 2019

Thanks for the heads up on this @rgknox. I am surprised I hadn't crashed this in my runs. Happy to test this across SA with my current parameter set.

@rgknox
Copy link
Contributor Author

rgknox commented Jan 3, 2019

Regression tested on cheyenne intel, fates, all PASS:
/gpfs/fs1/scratch/rgknox/clmed-tests/fates.cheyenne.intel.spawn-patch-cfix-C5dc7f0a-F0990f54

@rgknox rgknox requested a review from ckoven January 3, 2019 22:18

use EDParamsMod , only : ED_val_understorey_death, logging_coll_under_frac
use EDCohortDynamicsMod , only : zero_cohort, copy_cohort, terminate_cohorts
use ChecksBalancesMod , only : SiteCarbonStock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this isn't needed since all calls to it have been commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. Maybe I should remove the comments too. I suppose there is no reason to keep them. Will update

Copy link
Contributor

@ckoven ckoven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this all looks good to me. thanks @rgknox.

@rgknox
Copy link
Contributor Author

rgknox commented Jan 7, 2019

all pass, cheyenne, intel, fates test suite:
/gpfs/fs1/scratch/rgknox/clmed-tests/fates.cheyenne.intel.spawn-cfix-C5dc7f0a-Fa6ac612

@rgknox rgknox merged commit 6f4d4e3 into NGEET:master Jan 7, 2019
@rgknox rgknox deleted the rgknox-spawnpatch-cfix branch October 31, 2023 18:58
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.

3 participants