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

Bug fix for N balance error due to spval value for land use simulation #6618

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

jinyuntang
Copy link
Contributor

@jinyuntang jinyuntang commented Sep 16, 2024

When the land use data is on, at the begining of every year, the model
may crash with N balance error due to including spval value in N leaching
flux update. This update fixes this error by keeping those spval values away
from the N balance.

Fixes #6604

[BFB]

When the land use data is on, at the begining of every year,
the model may crash with N balance error due to including spval
value in N leaching flux update. This update fixes this error by
keeping those spval values away. The fix should be BFB for
simulations do not involve land use data.
Copy link

PR Preview Action v1.4.7
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6618/
on branch gh-pages at 2024-09-16 16:00 UTC

@rljacob rljacob changed the title Bug fix for N balance error due to spval value for land use simulation #6604 Bug fix for N balance error due to spval value for land use simulation Sep 16, 2024
@rljacob rljacob added this to the v3.0.1 milestone Sep 17, 2024
@rljacob
Copy link
Member

rljacob commented Sep 17, 2024

@qzhu-lbl @acme-y9s please review

@wlin7
Copy link
Contributor

wlin7 commented Sep 18, 2024

Hi @jinyuntang , what kind of land use you referred to? Does the standard v3 coupled historical configuration belong to this type?

One of the historical simulation member (WCYCL20TR compset) is also suffering from the nbalance error. It can happen any time of a year. I wish this PR can help fix the issue. Below is one of such error occurrence

Grid nbalance error   =   1.013586812202125E-008       15274 Latdeg,Londeg         =   -17.7500000000000       -52.2500000000000
 input                 =   1.050879828934370E-008
 output                =   1.244061746121541E-008
 error                 =   1.824456261963825E-005
 begnb                 =   -358.529896794962
 endnb                 =   -358.529896807030
 delta store           =  -1.206768729389296E-008

 dwt_conv                  6.911454145119673E-012

 dwt_seedn_leaf            5.838221271857611E-012
 dwt_seedn_deadstem        0.000000000000000E+000
 ENDRUN: ERROR in EcosystemBalanceCheckMod.F90 at line 1206

@rljacob
Copy link
Member

rljacob commented Sep 18, 2024

@bishtgautam please merge this to next today.

bishtgautam added a commit that referenced this pull request Sep 18, 2024
When the land use data is on, at the begining of every year, the model
may crash with N balance error due to including spval value in N leaching
flux update. This update fixes this error by keeping those spval values away
from the N balance.

Fixes #6604

[BFB]
@rljacob
Copy link
Member

rljacob commented Sep 19, 2024

@bishtgautam you can merge this to master.

@bishtgautam bishtgautam merged commit 4c88cca into master Sep 19, 2024
3 checks passed
@bishtgautam bishtgautam deleted the jinyuntang/lnd-use-fix branch September 19, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

N balance error with CBGC runs with compset xxxCNPPHSWFMCROP
7 participants