Closed Olsthoorn closed 7 years ago
Hi Theo, I took a look at this, and while there might be a benefit to using nlay - 1 as the size, it could break existing scripts. I think its best to leave this as is. The information in laycb[nlay-1] will never be written or loaded because dis.laycbd[nlay-1] is always zero. If I'm mistaken, and this is indeed an error, then please reopen this issue. I did add some existing clarification to the docstring as: "Note that if an array is passed for vkcb it must be of size (nlay, nrow, ncol) even though the information for the bottom layer is not needed."
in /flopy/modflow/mflpf.py line 205, Util3D is called to generate a 3D array for vkcb. However it's called with nlay instead of lay - 1
Suggested correction see below: