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

Abandon usage of ndep in input files, always read NHx and NOy #492

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

jmaerz
Copy link
Collaborator

@jmaerz jmaerz commented Feb 11, 2025

Hi @TomasTorsvik and @JorgSchwinger ,
with this PR, we abandon the usage of ndep in N-deposition input files. From now on, NOy and NHx are always read and used (and in case of the current default, just added together). The newly generated input files for N-deposition are prepared to support the old and new version, while as written before, one cannot expect bfb.

@jmaerz jmaerz added the iHAMOCC Issue mainly concerns the iHAMOCC code base label Feb 11, 2025
@jmaerz jmaerz added this to the BLOM v1.8.0 tag milestone Feb 11, 2025
@jmaerz jmaerz self-assigned this Feb 11, 2025
@jmaerz jmaerz mentioned this pull request Feb 11, 2025
20 tasks
Copy link
Contributor

@TomasTorsvik TomasTorsvik left a comment

Choose a reason for hiding this comment

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

Looks fine to me

Copy link
Contributor

@JorgSchwinger JorgSchwinger left a comment

Choose a reason for hiding this comment

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

Thanks for this - looks good!

@@ -269,7 +252,7 @@ subroutine get_ndep(kpie,kpje,kbnd,kplyear,kplmon,omask,ndep,patmnhxdep,patmnoyd
ndep(i,j,idepnoy) = noydepread(i,j)
ndep(i,j,idepnhx) = nhxdepread(i,j)
else
ndep(i,j,idepnoy) = ndepread(i,j)
ndep(i,j,idepnoy) = noydepread(i,j) + nhxdepread(i,j)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the ndep = 0.0 in line 203 should be moved up to the start of the routine (could then also be removed in line 189). Currently it is only set to zero for use_nuopc_ndep=.true.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@jmaerz jmaerz merged commit 57c4895 into NorESMhub:master Feb 12, 2025
4 checks passed
@jmaerz jmaerz deleted the rewrite_ndep_read branch February 12, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iHAMOCC Issue mainly concerns the iHAMOCC code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants