CICE-Consortium / CICE

Development repository for the CICE sea-ice model
Other
60 stars 132 forks source link

Add pio_finalize calls for CICE history and restart files #995

Closed apcraig closed 2 weeks ago

apcraig commented 2 weeks ago

PR checklist

This fixes a "too many communicators" error caught in UFS and duplicated in standalone CICE when writing lots of files.

Add pio_finalize calls for CICE history and restart files when running with PIO. This cleans up some PIO internal data. The code was aborting when trying to write lots of files (>600) because we reinitialize PIO for each file. This is a short term fix. A longer term fix is to initialize PIO once and reuse as much as possible.

Add a new test that runs CICE for a year writing hourly files (>8000 files). Test with pio2 and netcdf.

anton-seaice commented 2 weeks ago

Thanks @apcraig