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
167 stars 163 forks source link

[QUESTION] Rerunning a simulation to get different diagnostic collections? #1668

Closed TylerElgiar closed 1 year ago

TylerElgiar commented 1 year ago

Ask a question about GEOS-Chem:

Hello, my name is Tyler Elgiar, my institution is Utah State University

I ran three different Hg simulations, changing reaction rates for different mechanisms in the model. I only allowed "SpeciesConc" and "StateMet" for the output in the HISTORY.rc file. I would like to rerun the models to get some different output files (e.g., DryDep). Do I need to change the mechanism again and recompile the model for each run? Or can I just rerun the model using restart files specific to each modified run?

Thanks!

yantosca commented 1 year ago

Thanks for writing @TylerElgiar.

If you have created a separate run directory for each Hg simulation, then you can do the following in each run directory

./archiveRun.sh backup_files  # Saves the current run directory to a folder called `backup_files`
cp -R Restarts backup_files   # Also preserve the Restarts file folder (if there is one)
./cleanRunDir.sh              # Remove existing diagnostics & log files

Then edit the HISTORY.rc file to add your extra collections and rerun the simulation. Your previous diagnostic files will be in backup_files/OutputDir and your new diagnostic files will be in OutputDir.

yantosca commented 1 year ago

Also if you are using an older version than 14.0.0, then you will manually have to copy restart files to the backup_files folder.

TylerElgiar commented 1 year ago

Perfect, thanks for the help!

yantosca commented 1 year ago

No problem! I'll keep this issue open until you are sure that everything worked OK. Then feel free to close it.