Closed Aosrain closed 1 week ago
Thanks for letting us know about this @Aosrain. The GCHP carbon simulation has been passing our integration tests with GNU Fortran 10.2.0.
I believe that ATOL and RTOL aren't used because the carbon simulation uses the Forward Euler integrator, which is an implicit method. ATOL and RTOL are used for the Rosenbrock solver and similar methods (or at least that is my understanding).
@lizziel: Do we have an error trap in GCHP for zero ATOL or RTOL?
CMakeLists.txt make.log cmake.log Makefile.txt
For the carbon simulation, it should call GCHP_GridComp/GEOSChem_GridComp/geos-chem/KPP/carbon/gckpp_Integrator.F90, right? However, carbon/gckpp_Integrator.F90 is not compiled as shown in my make.log. It only compiles fullchem/gckpp_Integrator.F90. Is this the issue?
Here is how I compile the model:
@lizziel: Do we have an error trap in GCHP for zero ATOL or RTOL?
As far as I know GCHP uses the same KPP code as GC-Classic. GEOS has code to inflate the error tolerances in fullchem_mod.F90
but I assume that is not used for carbon.
It looks like that a new set of KPP code for carbon is available in src/GCHP_GridComp/GEOSChem_GridComp/geos-chem/KPP/carbon/, but not used yet.
After setting the error tolerances in src/GCHP_GridComp/GEOSChem_GridComp/geos-chem/KPP/fullchem/gckpp_Global.F90 as following, my job runs well. Thanks.
REAL(kind=dp) :: ATOL(NVAR) = 1e-2_dp REAL(kind=dp) :: RTOL(NVAR) = 0.5e-2_dp
Following up on this, I thought KPP/carbon
was used for the GCHP carbon simulation in 14.4. @yantosca, can you confirm this is true? I don't think changing the tolerances in KPP/fullchem/gckpp_Global.F90
should need to happen for carbon. If it does, then I wonder if there is a bug?
@Aosrain, I just saw your comment earlier that you used this to build:
cmake /nobackup/lwu5/GCHP -DCMAKE_PREFIX_PATH=/nobackup/lwu5/esmf-ESMF_8_2_0 -DMAKE=carbon
You need to use this command to build the carbon mechanism instead of -DMAKE=carbon
:
-DMECH=carbon
@lizziel Thanks for catching the error. I have recompiled it and the carbon simulation works well.
Your name
Longtao Wu
Your affiliation
JPL
What happened? What did you expect to happen?
The GCHP carbon simulation stops with the following error: Doing warm GEOS-Chem restart
What are the steps to reproduce the bug?
Please attach any relevant configuration and log files.
No response
What GEOS-Chem version were you using?
GCHP 14.4.0
What environment were you running GEOS-Chem on?
Other (please explain below)
What compiler and version were you using?
ifort 19.1.3.304 20200925
Will you be addressing this bug yourself?
Yes
In what configuration were you running GEOS-Chem?
GCHP
What simulation were you running?
Carbon
As what resolution were you running GEOS-Chem?
c24
What meterology fields did you use?
MERRA-2
Additional information
No response