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
Added support for driving GCHP with native GEOS metfields. #164
Conversation
f2913e8
to
efbba11
Compare
The integration tests are failing due to an error in MAPL_GridCompMod.F90. There is a variable called |
The integration tests are failing because of this PR geoschem/MAPL#12, which is already in |
I reran the CI pipeline and it passes now. This PR is ready for review. |
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the Stale bot from closing this issue. |
js = lbound(UA,2); je = ubound(UA,2) | ||
lm = size (UA,3) | ||
|
||
ALLOCATE(SPHU0(is:ie,js:je,lm), STAT=STATUS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be missing something, but I'm not seeing why it is necessary to allocate the local arrays to store the vertically flipped imports. Aren't the humidities only used here:
GCHP/src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Lines 677 to 697 in efbba11
! Stack up dry delta-P to get surface dry pressure | |
Do L=1,LM | |
! Pre-advection | |
PEdge_Bot = AP(L ) + BP(L ) * PS0(I,J) | |
PEdge_Top = AP(L+1) + BP(L+1) * PS0(I,J) | |
PSDry0 = PSDry0 + (PEdge_Bot - PEdge_Top) & | |
* (1.d0 - SPHU0(I,J,L)) | |
! Post-advection | |
PEdge_Bot = AP(L ) + BP(L ) * PS1(I,J) | |
PEdge_Top = AP(L+1) + BP(L+1) * PS1(I,J) | |
PSDry1 = PSDry1 + (PEdge_Bot - PEdge_Top) & | |
* (1.d0 - SPHU1(I,J,L)) | |
End Do | |
! Work back up from the surface to get dry level edges | |
! Do wet pressure at the same time - why not | |
Do L=1,LM+1 | |
DryPLE0r8(I,J,L-1) = 100.d0*(AP(L)+(BP(L)*PSDry0 )) | |
DryPLE1r8(I,J,L-1) = 100.d0*(AP(L)+(BP(L)*PSDry1 )) | |
PLE0r8 (I,J,L-1) = 100.d0*(AP(L)+(BP(L)*PS0(I,J))) | |
PLE1r8 (I,J,L-1) = 100.d0*(AP(L)+(BP(L)*PS1(I,J))) | |
End Do |
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the Stale bot from closing this issue. |
@LiamBindle, just checking on if you saw my review for this from early November. |
I created a new branch in the GCHP superproject repo that points to the corresponding updates in both GEOS-Chem and HEMCO submodules. Integration tests and benchmarks will follow. |
The main change in this PR is the handling for METEOROLOGY_VERTICAL_INDEX_IS_TOP_DOWN in GCHPctmEnv.
Parent PR (feature/native-metfields)