Skip to content

Commit

Permalink
fix(mfpackage): modify maxbound evaluation (modflowpy#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs authored and wpbonelli committed Dec 14, 2022
1 parent 397d5b4 commit 02b261d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flopy/mf6/mfpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import inspect
import os
import sys
from re import S

import numpy as np

Expand Down Expand Up @@ -2022,7 +2023,13 @@ def _update_size_defs(self):
data = None
if data is not None:
new_size = len(dataset.get_data())
if size_def.get_data() != new_size >= 0:

if size_def.get_data() is None:
current_size = 0
else:
current_size = size_def.get_data()

if new_size > current_size:
# store current size
size_def.set_data(new_size)

Expand Down

0 comments on commit 02b261d

Please sign in to comment.