Skip to content

Fix some issues with newly added outputs#713

Merged
JorgSchwinger merged 1 commit intoNorESMhub:masterfrom
JorgSchwinger:fix-new_outputs
Mar 2, 2026
Merged

Fix some issues with newly added outputs#713
JorgSchwinger merged 1 commit intoNorESMhub:masterfrom
JorgSchwinger:fix-new_outputs

Conversation

@JorgSchwinger
Copy link
Copy Markdown
Contributor

This PR fixes some issues that have brought up during review of #711 but have not been solved before merging. Importantly, pH is now averaged consistently as pH (not as [H+]).

Copy link
Copy Markdown
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.

@JorgSchwinger - thanks for fix! It looks fine to me.

Comment on lines +623 to +631
! --- Compute log10 of pH
!if (SRF_PH(iogrp).ne.0) call logsrf(jsrfph(iogrp),rnacc,0._rp)
!if (LYR_PH(iogrp).ne.0) call loglyr(jph(iogrp),1._rp,0._rp)
!if (LVL_PH(iogrp).ne.0) call loglvl(jlvlph(iogrp),rnacc,0._rp)
!if (use_natDIC) then
! if (SRF_NATPH(iogrp).ne.0) call logsrf(jsrfnatph(iogrp),rnacc,0._rp)
! if (LYR_NATPH(iogrp).ne.0) call loglyr(jnatph(iogrp),1._rp,0._rp)
! if (LVL_NATPH(iogrp).ne.0) call loglvl(jlvlnatph(iogrp),rnacc,0._rp)
!endif
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe just remove this comment block?

Copy link
Copy Markdown
Collaborator

@jmaerz jmaerz left a comment

Choose a reason for hiding this comment

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

Looks good to me. Could you provide the details, how and why the O2_min is used? - also that no depth seems to be attached to it (i.e. depth can vary from time step to time step)? A little bit strange output to me, but likely needed?!

@TomasTorsvik
Copy link
Copy Markdown
Contributor

@JorgSchwinger - is this ready for merging?

@JorgSchwinger
Copy link
Copy Markdown
Contributor Author

Looks good to me. Could you provide the details, how and why the O2_min is used? - also that no depth seems to be attached to it (i.e. depth can vary from time step to time step)? A little bit strange output to me, but likely needed?!

Hi @jmaerz , I agree this is a bit strange, particularly without depth information, but this is what the CMIP7 data request says. We might add the depth information in a later PR to have it available.

@JorgSchwinger JorgSchwinger merged commit c87c239 into NorESMhub:master Mar 2, 2026
4 checks passed
@JorgSchwinger JorgSchwinger deleted the fix-new_outputs branch March 2, 2026 11:15
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