Open GoogleCodeExporter opened 9 years ago
Hi Todd,
I think this is the expected behavior, the fact that 40.75 > 40 is just an
artifact of the bookkeeping method we employ. There are two integers we are
interested in:
ktup = the kt (cell center) index such that zt(ktup-1) < OBL_depth <= zt(ktup)
kwup = the kw (cell interface) index such that zw(kwup-1) < OBL_depth <=
zw(kwup), which is another way to say that the OBL_depth is in cell kwup
These are defined by
ktup = nint(kOBL_depth) - 1
kwup = floor(kOBL_depth)
So kOBL_depth = 40.75 means that ktup = 40 (the OBL is somewhere between the
middle of cell 39 and the middle of cell 40, inclusive on the bottom) and kwup
= 40 (the OBL_depth is somewhere in cell number 40).
I should add that one of the assumptions made in the computation is that the
OBL depth can never be lower than the center of the bottom cell, even if the
bulk Richardson number is less than the critical Richardson number everywhere.
Original comment by mike.lev...@gmail.com
on 23 Aug 2013 at 5:45
Original issue reported on code.google.com by
todd.rin...@mac.com
on 20 Aug 2013 at 4:00