-
Notifications
You must be signed in to change notification settings - Fork 92
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
Patch fusion error in fixed biogeography no comp mode with f19_f19 grid #940
Comments
Hi @JessicaNeedham, I have faced the similar issue before. My problem was caused by a small harvest rate within certain PFT that only have one patch. FATES try to generate a secondary patch with small area but too small that FATES later attempt to terminate (<1e-4 right now I think). But FATES cannot remove the last patch of a certain PFT under certain tag (either primary or secondary) under nocomp mode. Other disturbances do not generate secondary patch thus the new patch can be merged even the area is tiny. |
@jenniferholm @glemieux @ckoven @rgknox Regarding the patch fusion, I actually found that with competition mode FATES allows the anthropogenic tag to be changed to force the patch fusion: I'm not sure if we also need the same function under no competition mode. But at least my current version does not have. |
Hi @sshu88, thanks for your comment. I’m seeing this error in a run in which harvest is off, so it needs a fix beside allowing the anthropogenic tag to change - although maybe that is also necessary? You might be right about some PFTs having a very small area. Would we want to allow for the termination of PFTs that start out with very very small areas in no comp mode? Should they exist to begin with? I’m still trying to wrap my head around the patch fusion logic… |
I'm attempting to replicate this with an |
@JessicaNeedham did you try testing as per the message by commenting out the endrun statement? |
If I comment out the endrun message it runs. |
Thanks @JessicaNeedham. I wonder then if the endrun here is being overly pessimistic? If we just have it give a warning and not crash, then that might still be sufficiently helpful for diagnosing a subsequent crash if one were to occur? |
I think that's a promising idea @ckoven, although I wonder what sort of crashes really small patches had been causing downstream to prompt the development of this check. @rgknox do you have a sense of this? This is somewhat tangential, but I wonder how feasible it would be to store warning messages (or maybe codes?) so that we could inform the user of potential areas to investigate given a call to |
This ran without issue btw. |
Hi all,
Is the current solution to just remove the endrun here, and replace it
with a warning?
…On Tue, Nov 15, 2022 at 10:15 AM Gregory Lemieux ***@***.***> wrote:
I'm attempting to replicate this with an f19_g17 resolution for clm-fates
as well using no comp + fixed biogeography.
This ran without issue btw.
—
Reply to this email directly, view it on GitHub
<#940 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCVHGAZEENEAURG75V6DDTWIPHNPANCNFSM6AAAAAASAJ73XI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Jennifer Holm
Research Scientist
Climate and Ecosystems Sciences Division
Lawrence Berkeley National Laboratory
510-495-8083
|
@jenniferholm yes, that is what I was suggesting. |
If/when we come up with a fix, can someone also address this line? https://github.com/NGEET/fates/blob/sci.1.60.2_api.24.2.0/biogeochem/EDPatchDynamicsMod.F90#L2855 The variable "youngerPatch% anthro_disturbance_label" has an unintended space inside the variable. (I didn't realize spaces are allowed, but it could confuse compilers?) Re:
I don't have a sense if preventing super small patch areas is still relevant. I suppose I would be on the look out for dividing by them. As for the warning, I like that idea. We could keep the current warning message as a comment, and shorten the reported error message, and give it index 4:
|
@sshu88 - do you think this fix will also correct the model crash you saw, due to the creation of very small secondary forest patches? |
@jenniferholm For me there will be some further energy balance issues if too tiny patch is created. Current solution for me is to duplicate the code to force secondary patch to merge back with the parent primary patch as: |
Running FATES in fixed biogeography no comp mode with an f19_f19 grid I got the following error:
FATES is having difficulties fusing very small patches.
118: It is possible that a either a secondary or primary
118: patch has become the only patch of its kind, and it is
118: is very very small. You can test your luck by
118: disabling the endrun statement following this message.
118: FATES may or may not continue to operate within error
118: tolerances, but will generate another fail if it does not.
118: ENDRUN:
118: ERROR in EDPatchDynamicsMod.F90 at line 2872
The error occurs within the first hour of the simulation.
I don't see this error running on a f45_f45 grid.
I'm running on compy with ELM commit c63cce2 and FATES commit 8ef6a1e from main branch.
The text was updated successfully, but these errors were encountered: