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

geos-chem 14.4.0 +APM "Infinity in DO_CLOUD_CONVECTION" #2354

Open
Tracked by #2312
zion0210 opened this issue Jun 28, 2024 · 6 comments
Open
Tracked by #2312

geos-chem 14.4.0 +APM "Infinity in DO_CLOUD_CONVECTION" #2354

zion0210 opened this issue Jun 28, 2024 · 6 comments
Assignees
Labels
category: Debug Help Request for assistance debugging GEOS-Chem topic: Aerosols Related to aerosol species in GEOS-Chem

Comments

@zion0210
Copy link

Your name

zion0210

Your affiliation

ASU

Please provide a clear and concise description of your question or discussion topic.

Hello!

I have a problem with running geos-chem 14.4.0 +APM
I build the code as follows:

cmake ../CodeDir -DRUNDIR=.. -DAPM=y 
make -j 
make install

I chose fullchem and APM in config dialog windows.
I got 2 problems:
1.

APM not found BIOMASS_BCPO
APM not found ANTHROPOGENIC_BCPO
APM not found BIOMASS_OCPO
APM not found ANTHROPOGENIC_OCPO

Infinity in DO_CLOUD_CONVECTION!
K, IC, Q(K):    4 253           NaN   APMCTBC1
GEOS-Chem ERROR: Error encountered in "Do_Cloud_Convection"!
 -> at Do_Convection (in module GeosCore/convection_mod.F)

I also studied component of subroutine convection_mod.F and discovered infinity for part of the values of the Q array for the species 253.

Maybe, if APMCTBC1 is SO4, then infinity values appear because the SO4 global emission source not described in HEMCO_Config.rc.

I attached HEMCO_Config.rc(HEMCO_Config.log) and run.log to the message.

What can I do to complete my simulation?

Regards,
zion0210
run.log
HEMCO_Config.log

@zion0210 zion0210 added the category: Question Further information is requested label Jun 28, 2024
@yantosca
Copy link
Contributor

yantosca commented Jul 1, 2024

Thanks for writing @zion0210. I would recommend first compiling again with cmake -DAPM=y -DCMAKE_RELEASE_TYPE=Debug. This will add some extra error checking into the executable which may shed some more light on the situation.

I think APMCTBC1 is one of the black carbon species. I am not an expert in APM, I would defer to @ganluoasrc (Gan Luo) who is one of the developers.

@yantosca yantosca added topic: Aerosols Related to aerosol species in GEOS-Chem category: Debug Help Request for assistance debugging GEOS-Chem and removed category: Question Further information is requested labels Jul 1, 2024
@yantosca yantosca self-assigned this Jul 1, 2024
@ganluoasrc
Copy link
Contributor

@zion0210 @yantosca

APMCTBC1 refers to sulfate coated on BC. In APM, sulfate is formed by SO2 chemistry. No special emission for APM sulfate in HEMCO is needed.

The error is caused by the missing of BC and OC emissions in GC14-APM. We used BC and OC diagnostics from HEMCO to generate BC and OC emissions for APM. It seems BIOMASS_BCPO, ANTHROPOGENIC_BCPO ... are no longer available in diagnostics from HEMCO in GC14. So, you got the notices of
APM not found BIOMASS_BCPO
APM not found ANTHROPOGENIC_BCPO
APM not found BIOMASS_OCPO
APM not found ANTHROPOGENIC_OCPO

To fix the error, we need to get BC and OC diagnostics from HEMCO. @yantosca, do you have any suggestions? Does GC14 use new variables to replace BIOMASS_BCPO, ANTHROPOGENIC_BCPO ...?

@yantosca
Copy link
Contributor

yantosca commented Jul 1, 2024

Thanks @ganluoasrc. I wonder if those were manual diagnostics in HEMCO, which have since been disabled. Tagging @msulprizio, who may know more.

@msulprizio
Copy link
Contributor

@yantosca @ganluoasrc It looks like the BIOMASS_BCPO, etc. fields were previously defined in hcoi_gc_diagn_mod.F90 but were removed in commit c8fed80 as part of the initial removal of BPCH diagnostics back in version 12.6.0. Essentially, those fields were manual diagnostic fields that were defined in HEMCO to store the emission fluxes from whichever biomass burning inventory is used. To resolve the first errors mentioned above, we would need to restore these manual diagnostics -- see these lines of code for an example.

@yantosca
Copy link
Contributor

yantosca commented Jul 1, 2024

Thanks @msulprizio. We can add those back in wrapped in an #ifdef APM block.

@ganluoasrc
Copy link
Contributor

Thanks @msulprizio and @yantosca.

Yes, I agree that we can add those back as that suggested by Bob.

The problem of infinity in Q array is associated with BC and OC run without emissions. After adding BC and OC emissions, the associated problem may be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Debug Help Request for assistance debugging GEOS-Chem topic: Aerosols Related to aerosol species in GEOS-Chem
Projects
None yet
Development

No branches or pull requests

4 participants