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
[WIP] Added support for importing mass flux from ExtData #172
Conversation
…ed to/from total VMR at start/end of AdvCoreGridComp::Run). Added IMPORT_MASS_FLUX_FROM_EXTDATA field to GCHP.rc. If true, MF[XY]C and C[XY]C are imported from ExtData and converted to real8 in GCHPenvGridComp. If false, MF[XY]C and C[XY]C are calculated online in GCHPenvGridComp from wind and pressure.
So far I've tested this with 24-hour transport tracer simulations driven by GEOS-IT data (a wind-based simulation versus a mass-flux-based simulation). I still need to add a "mass flux simulation", as of bc42091 the necessary code-updates should be there. @sdeastham Could you review this diff when you have a chance? A thorough check-over of the diffs to For reference, here is the diff of the original mass flux simulation which is what I based this PR on. |
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. |
I've reviewed this pull request and can confirm that it appears to work as intended. EDIT: Never mind! Came across a potential issue while reviewing. |
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 think that the computation of mass fluxes when winds are read in is incorrect, since all advection is now performed using total VMRs rather than dry VMRs.
src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Outdated
Show resolved
Hide resolved
src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Outdated
Show resolved
Hide resolved
src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Outdated
Show resolved
Hide resolved
src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Outdated
Show resolved
Hide resolved
src/GCHP_GridComp/GCHPctmEnv_GridComp/GCHPctmEnv_GridCompMod.F90
Outdated
Show resolved
Hide resolved
I have a general question about the description of this PR. Tracer advection uses mass mixing ratio so why is the term VMR used? |
Is there an FVdycore PR in the works for the changes to AdvCore_GridComp? |
Thanks Seb and Lizzie for your reviews! I'll make those updates early next week. Regarding VMR vs mass mixing ratio, that's just a terminology mistake on my part. I just meant to differentiate between total and dry mixing ratios. Regarding a PR for AdvCore_GridComp, I'm not planning to. |
Why not do a PR for FVdycore? When resolving conflicts down the road during upstream version update it might useful to have around. |
… (not dry) and this commit catches one that was missing.
…PORT and _EXPORT suffixes. Removed DryPLE imports and exports (advection uses total pressure now). Replumbed GCHPctmEnv-AdvCore-GEOSChem imports/exports.
… indentation, removed stylizing comments, removed unnecessary alignment whitespace, removed old docgen strings; more inline with modern MAPL style).
…utines that prepare (1) PLE exports, (2) the SPHU export, and (3) the mass flux exports.
Refactored GCHPctmEnv_GridComp
@lizziel I did a pretty extensive refactor of GCHPctmEnv_GridComp (summarized in #181 if you want to see the diff). I merge it into this PR. I added the |
Looks good. See my review at #181. |
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. |
Closed in favor of #190 |
This PR includes 5 major changes:
AdvCoreGridComp::Run()
.IMPORT_MASS_FLUX_FROM_EXTDATA
as a field in GCHP.rc. If.true.
, GCHPenvGridComp imports MF[XY]C and C[XY]C from ExtData and converts them to real8's. If.false.
, GCHPenvGridComp calculates MF[XY]C and C[XY]C from wind and pressure. Both ways export MF[XY] and C[XY] real8's which are imported in AdvCoreGridComp.These are meant to be a clean and up-to-date implementation of the original mass flux simulation whose diff is here.