-
Is there a way to generate restart files at t =0h (i.e., immediately after model initialization)? I've tried setting |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Someone else might know more specifics, but it is my understanding that the code to write the restarts is at the end of the time-loop, so the best you can do is run the model one time-step and write out the restarts. I just checked the model code, and nhours_fcst can be a fraction of an hour (e.g 0.25 if you are running with a 900 second time-step) |
Beta Was this translation helpful? Give feedback.
-
for MOM, this is what you need in MOM_input |
Beta Was this translation helpful? Give feedback.
-
I was able to generate restarts by editing the source code file FV3/module_fcst_grid_comp.F90. I first simply forced FV3 to generate restarts files every time step within the fcst_run_phase_2 subroutine by removing the if statements that checked if restarts should be generated based on the restart_interval parameter in model_configure. As @pjpegion correctly assumed, this resulted in the first set of restart files being generated after the first time step. I then decided to move this code into the preceding subroutine named fcst_run_phase_1 (before any integration occurs). Somewhat surprisingly, this worked and restart files were generated at t=0. There do not appear to be any issues with the files and I was able to restart a run using them. Here's my final implementation within fcst_run_phase_1:
|
Beta Was this translation helpful? Give feedback.
I was able to generate restarts by editing the source code file FV3/module_fcst_grid_comp.F90. I first simply forced FV3 to generate restarts files every time step within the fcst_run_phase_2 subroutine by removing the if statements that checked if restarts should be generated based on the restart_interval parameter in model_configure. As @pjpegion correctly assumed, this resulted in the first set of restart files being generated after the first time step.
I then decided to move this code into the preceding subroutine named fcst_run_phase_1 (before any integration occurs). Somewhat surprisingly, this worked and restart files were generated at t=0. There do not appear to be any issues with…