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

UFS-dev PR#88 #1032

Merged
merged 4 commits into from
Nov 2, 2023
Merged

UFS-dev PR#88 #1032

merged 4 commits into from
Nov 2, 2023

Conversation

grantfirl
Copy link
Collaborator

Identical to ufs-community#88

@@ -3400,8 +3400,8 @@ subroutine mp_thompson (qv1d, qc1d, qi1d, qr1d, qs1d, qg1d, ni1d, &
tcond(k) = (5.69 + 0.0168*tempc)*1.0E-5 * 418.936
ocp(k) = 1./(Cp*(1.+0.887*qv(k)))
lvt2(k)=lvap(k)*lvap(k)*ocp(k)*oRv*otemp*otemp

nwfa(k) = MAX(11.1E6*rho(k), (nwfa1d(k) + nwfaten(k)*DT)*rho(k))
if (is_aerosol_aware) &
Copy link
Collaborator

Choose a reason for hiding this comment

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

Others should weigh in here -- would a better strategy be to make nwfa and nifa both optional variables for module_mp_thompson?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Personally, I like what your propose.
"is_aerosol_aware" could be replaced by (present(nwfa) .and. prsent(nifa)), and it would be self consistent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Others should weigh in here -- would a better strategy be to make nwfa and nifa both optional variables for module_mp_thompson?

It looks like they already are optional variables but that an additional logical is used to control their use. Perhaps someone knows why the logical is still needed?

Regardless, we probably shouldn't change this particular PR since this is supposed to be identical to ufs/dev PR88. If changes need to be made, they should be made to a new PR into ufs/dev.

@grantfirl grantfirl merged commit 61b419f into NCAR:main Nov 2, 2023
3 checks passed
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.

6 participants