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

cam6_4_066: Negative wet dep messages #1228

Merged
merged 6 commits into from
Feb 14, 2025
Merged

Conversation

fvitt
Copy link

@fvitt fvitt commented Jan 15, 2025

This limits the negative aerosol wet deposition messages written to cesm.log

Addresses #1132

fvitt added 2 commits January 15, 2025 10:37
	modified:   src/chemistry/aerosol/wetdep.F90
	modified:   src/chemistry/aerosol/wetdep.F90
@fvitt fvitt added the BFB bit for bit tag label Jan 15, 2025
@fvitt fvitt self-assigned this Jan 15, 2025
@cacraigucar cacraigucar changed the title Negative wet dep messages cam6_4_066: Negative wet dep messages Feb 11, 2025
found = .false.
do i = 1,ncol
if ( dblchek(i) < 0._r8 ) then
if (dblchek(i) < -1.e-10_r8) then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps a comment on why -1.3-10_r8 is being used instead of a normal check of <0 would be appropriate

Copy link
Author

Choose a reason for hiding this comment

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

added comments

@@ -645,22 +645,20 @@ subroutine wetdepa_v2( &

end do ! End of i = 1, ncol

#ifdef DEBUG
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this checking only being done for #DEBUG?

Copy link
Author

Choose a reason for hiding this comment

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

The check are catching a lot of insignificant small negative values which have been to cesm log an mostly ignored.
With the addition of the endrun call, we are only doing the checks in debug mode.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps a comment about this would be appropriate?

Copy link
Author

Choose a reason for hiding this comment

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

done

@fvitt fvitt merged commit 1ba445b into ESCOMP:cam_development Feb 14, 2025
2 checks passed
gold2718 pushed a commit to gold2718/CAM that referenced this pull request Feb 19, 2025
Merge pull request ESCOMP#1228 from fvitt/negwetdep

cam6_4_066: Negative wet dep messages

ESCOMP commit: 1ba445b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB bit for bit tag
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

2 participants