NOAA-GFDL/MOM6

More flexibility when writing restart files

Closed this issue · 1 comments

At the moment, save_restart is called directly by the drivers, e.g. here. I would like to option to save non-standard restart files that contain particle locations, but I cannot currently do so without writing new code in all of the drivers (which doesn't seem ideal).

I would like it if the driver could call a new subroutine that we could add to MOM.F90, and that subroutine could call save_restart. Then any extra steps in the save_restart process could be added only in one place in the code. This would help me directly, but is also likely to help others who might want to add to the code in the future.

I talked to @adcroft about this several months ago. He seemed to be on board with the idea. I am posting here to create a paper trail and to start a discussion on whether/how to make this happen.

I believe this has been addressed; we now have a clear space for generalizing restarts.