Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ice_flux: initialize fcondtopn_d as in CICE4
In our in-house CICE4 version, we had special initialization code in ice_flux::init_coupler_flux to initialize the 'fcondtopn_d' and 'fsurfn_d' arrays for ncat != 6. This was needed to avoid going out of bounds on the loop on ncat where these arrays are used below to initialize fcondtopn_f and fsurfn_f. This was fixed in CICE in 97370d7 (Update testing, in particular for diagnostics and decompositions (CICE-Consortium#602), 2021-05-26) by using the last (6th) value of the array for any higher category. This leads to 'fcondtopn_d' having different values in CICE6 for the last 4 categories compared to our in-house CICE4. To make side-by-side debugging of CICE6 and CICE4 easier, minimize the differences between the initialization in both models by adding a 7th value to fcondtopn_d. This makes its fcondtopn_f have identical values in both models. Adjust 'fsurfn_d' accordingly.
- Loading branch information