Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: icedrv_restart: Added option for restart files to be read/wri…
…tten in NetCDF format (#427) * Trial fix for netCDF start time problem * driver: icedrv_history: fix start time for NetCDF history output The start time for netCDF output was hardcoded to be at 00:00:00 and there was a bug in icedrv_calendar such that idate0 was fixed at Jan. 1. Both bugs are fixed. NOTE: if dt and istep0 are set such that the start time contains fractional seconds, they will be rounded down in the NetCDF output to the nearest integer. * driver: icedrv_history: fix start time for NetCDF History output Start of netCDF time axis is fixed at Jan. 01 00:00:00 of init_year and time value calculation is now fixed. * Added restart_format variable to icedrv_restart_shared and to namelist. No functionality implemented yet, just checking it's added correctly. * need to also add new namelist to icepack_in * Added error handling for incorrect restart format, should probably update final_restart at some point * NetCDF restart file created, next need to populate fields * NetCDF Restart output is now populated * if block error handling in restartfile * driver: icedrv_restart: enabled restart/ice_ic files to be written/read as NetCDF Added the option for restart (aka initial condition) files to be in NetCDF instead of binary for ease of setting custom inital conditions * modified set_nml.ionetcdf to default to netcdf restart files if we set ionetcdf * Fixed error in which some tracers were not being writting. NetCDF restart files are now identical * fixed istep1 = istep0 but and added test_suite for netcdf * removed bgc from the netcdf restart test suite * put netcdf functions into conditional compilation blocks * Removed unused variables (sec0, h0, m0, s0) from icedrv_history * Removing unused variables in icedrv_history (after merging in from consortium-main) * Changed history_cdf namelist to history_format and updated documentation * Fixed warning message if restart_format is incorrect * halfway done reorganizing restartfile * finished reorganization in restartfile, need to do dumpfile next * Halfway done editing dumpfile * finished editing dumpfile * updated namelist settings and documentation. all tests pass * removed the netcdf_nobgc test suite * Fix minor issues found during testing - icedrv_init write format for history_format - dims allocation in icedrv_restart - cleaned up some intent lines (old) - add return at end of io_suite.ts - update namelist documentation of history_format, restart_format Update to current main trunk * Update history_format default Check history_format and restart_format input values --------- Co-authored-by: apcraig <anthony.p.craig@gmail.com>
- Loading branch information