geoschem / geos-chem

GEOS-Chem "Science Codebase" repository. Contains GEOS-Chem science routines, run directory generation scripts, and interface code. This repository is used as a submodule within the GCClassic and GCHP wrappers, as well as in other modeling contexts (external ESMs).
http://geos-chem.org
Other
163 stars 154 forks source link

Trying coarser resolution (12.0x15.0) with GEOS-Chem Classic results in errors with KPP solvers [BUG/ISSUE] #1335

Closed supergr35 closed 1 year ago

supergr35 commented 2 years ago

What institution are you from?

Rice University

Description of the problem

When running GEOS-Chem at 12x15 resolution, KPP solvers are unable to converge. We're testing at 12.0x15.0 resolution despite 4x5 MERRA2 meteorology to see if GEOS-Chem can be ran faster without loss of too much data. I believe it's on the first time step and isn't able to continue time stepping, but I haven't verified this. image

Steps: Set resolution in input.geos to 12.0x15.0 Remove any hard-coded checks for a supported resolution and recompile Run geos-chem

Description of troubleshooting performed

Describe any troubleshooting that you have already performed here. Also include any leads or suspicions here. According to https://github.com/geoschem/geos-chem/issues/66 I've tried to adjust RTOL and ATOL up and down by an order of magnitude with no effect.

Finally, I've also tried to adjust the timesteps in input.geos to higher and lower values with no change.

GEOS-Chem version

12.9.2

Description of modifications

An earlier error required me to add a dust emissions tuning factor for my specific resolution in hcox_dustdead_mod.F (according to http://wiki.seas.harvard.edu/geos-chem/index.php/Mineral_dust_aerosols#Generating_dust_tuning_factors), and some threads have pointed to dust emissions being too high as a potential error. I've adjusted my tuning factor up and down, but I'm still getting errors in the KPP solvers.

I set RES in HEMCO_Config.rc to 4x5 to ensure that our meteorology files (MERRA2 at 4x5) are still read in correctly.

I've also set UCX_MOD=.FALSE in ucx_mod.F90 to get rid of the following error

image

Log files

Software versions

yantosca commented 2 years ago

Thanks for writing @supergr35. We have no experience running GEOS-Chem Classic at coarser resolutiion than 4 x 5.

One thing that may be happening is that you might have to reduce the dynamic and chemical timesteps. It could be that the default timesteps of 600/1200 seconds are violating the Courant limit in transport.

To test this hypothesis, run a short simulation with transport turned off and see if you do not get the KPP integration error. If you still get the KPP integrate error, then try turning off other operations (e.g. drydep, wetdep, PBL mixing) and see if you can isolate which operation is causing the problem. We also have some tips at our new debugging guide on ReadTheDocs: https://geos-chem.readthedocs.io/en/latest/geos-chem-shared-docs/supplemental-guides/debug-guide.html

yantosca commented 2 years ago

Oops I meant increase the timesteps. When you go to finer resolution you should reduce the default timesteps but when you go to coarser resolution you have to increase them. Sorry for the confusion.

stale[bot] commented 1 year ago

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.

yantosca commented 1 year ago

Closing out this issue