NCAR / MOM6

NCAR/CESM fork of the Modular Ocean Model v.6 (MOM6)
Other
3 stars 20 forks source link

Two changes to fpmix indexing #320

Closed mnlevy1981 closed 3 weeks ago

mnlevy1981 commented 3 weeks ago

There were two instances of indexing arrays out of bounds:

  1. kfsc>=1, but we were looking for iFaceHeight(ksfc-1); I changed this to iFaceHeight(ksfc) instead
  2. kbl was set to nint(CS%kOBL(i,j)), and nint() would round up to ke+1 in some instances so I changed this to int(CS%kOBL(i,j,)) instead

We need to verify that these are scientifically correct, they just seemed like easy ways to avoid exceeding the array bounds