Skip to content

Commit

Permalink
fix(get_active) include the cbd layers when checking layer thickness …
Browse files Browse the repository at this point in the history
…before BAS is loaded (#1051)
  • Loading branch information
ougx committed Feb 8, 2021
1 parent 5bfdf71 commit 3ccdd57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flopy/utils/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ def get_active(self, include_cbd=False):
"""
mg = self.model.modelgrid
if mg.grid_type == "structured":
inds = (mg.nlay, mg.nrow, mg.ncol)
nlaycbd = mg._StructuredGrid__laycbd.sum() if include_cbd else 0
inds = (mg.nlay + nlaycbd, mg.nrow, mg.ncol)
elif mg.grid_type == "vertex":
inds = (mg.nlay, mg.ncpl)
else:
Expand Down

0 comments on commit 3ccdd57

Please sign in to comment.