ESCOMP / CMEPS

NUOPC Community Mediator for Earth Prediction Systems
https://escomp.github.io/CMEPS/
24 stars 79 forks source link

runseq for STOP_OPTION=nsteps is incorrect #255

Open jedwards4b opened 3 years ago

jedwards4b commented 3 years ago

THE GLC_NCPL calculation used to compute the runseq is wrong when STOP_OPTION=nsteps.

adamrher commented 2 years ago

Does this problem go away when using SGLC? When I use SLGC (i.e., the new F2000) and run for 9 nsteps I get this error in the ESMF log files:

20220102 100336.566 ERROR PET02 src/addon/NUOPC/src/NUOPC_Base.F90:950 Invalid argument - setClock timeStep=10800s is not a divisor of runDuration=16200s

When I change it to 6 nsteps, it runs to completion. Is this related to the issue in this thread?

mvertens commented 2 years ago

@adamrher - I think that you need to set ROF_NCPL to have the same time step as ATM_NCPL. Can you please point me to your sandbox.

adamrher commented 2 years ago

yes, setting ROF_NCPL=48 runs nstep=9 to completion. Here's my sandbox (on izumi): /home/aherring/src/cam6_3_040.arh

mvertens commented 2 years ago

@adamrher - the issue is that the model can only run on intervals of the longest coupling frequency. So if ROF_NCPL = 8 (the default) you can only run the model for 6, 12, 18... CAM time steps - assuming that ATM_NCPL=48. All the CAM tests set ROF_NCPL=CAM_NCPL so that you can run for any number of time steps that you want. Does that make sense?