forked from CICE-Consortium/CICE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice_init: add NetCDF coldstart capability
This new feature consists of reading the following fields from a NetCDF input file (currently hardcoded to 'init_cice.nc') on the same grid as the model: * aice (ice concentration) * hice (ice thickness) * hsnow (snow thicknes) * Tair (surface air temperature) This is done in ice_init::init_state, just prior to calling 'set_state_var'. Then, in 'set_state_var', when computing the list of cells to initialize (arrays indx[ij]), we add a condition on 'ice_data_type' and choose all ocean points with non-zero concentration (since at that point 'aice' is already read from the NetCDF file). Arrays 'aice' and 'hice' are then used to distribute the volume among the different existing thickness category, using a procedure developed by Mathieu Chevalier in 2015 (ice_data_type='initnc_sprd'), or to set the volume of the closest category (ice_data_type='initnc'). Note that we need to make sure not to overwrite 'aicen', 'vicen' and 'vsnon' in the following loop on 'ncat'. Reading 'Tair' allows us to initialize the vertical temperature profile in the ice (in icepack_init_trcr) to more realistic values. In the future, we might want to also read sss and sst, and adjust the latter to ensure consistency between sss and the freezing temperature Tf (taking the maximum of Tf and sst). This is left for future work, but let's already add 'sst' as in 'inout' argument in 'readnc'. This way the existing values are left unmodified for now. Co-authored-by: Philippe Blain <[email protected]>
- Loading branch information
1 parent
93908d7
commit 937c56d
Showing
1 changed file
with
310 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters