Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 3: Modifying the coupler

Here are instructions to modify the length of your run and the frequency with which information is passed between the ocean and atmosphere models.

Rename a copy of example.py:. You don't have to do this, but I recommend it because then you have the original example.py you can refer to if your modifications are unsuccessful. 

cp example.py myrun.py 

To modify the length of your run, open myrun.py and edit "start_time" and/or "end_time". To modify the passing frequency, open myrun.py and edit "step". For example,

start_time, end_time = datetime(2000,1,1,0),datetime(2001,1,1,0)                 (run 1 yearr, from Jan 01, 2000 to Jan 01, 2001)

step = 21* 24                                                                                                    (pause models and pass information every 21 days)

 

start_time, end_time = datetime(2000,1,1,0),datetime(2000,1,5,0)                 (run 4 days, from Jan 01, 2000 to Jan 05, 2000)

step = 1* 24                                                                                                    (pause models and pass information every day)

To run your new job, type  

Before you submit a new coupled job, remove the files called "DONE" from your run directory:

cp <your_directory>/coupler/GEOS-Chem/run/

rm DONE

cp <your_directory>/coupler/MITgcm/verification/global_pcb_llc90/run/

rm DONE

Return to your coupler parent directory:

cp <your_directory>/coupler/

Type the following into the command line ,to submit your new job:

source startup.sh                                              (grabs nodes to run coupled job)

python myrun.py                                               (run job)

...