Skip to content

Commit

Permalink
add inactive inhoms bounds check
Browse files Browse the repository at this point in the history
some tiny notebook improvements
  • Loading branch information
dbrakenhoff committed Dec 11, 2024
1 parent 6280815 commit 00bfa45
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 213 deletions.
3 changes: 2 additions & 1 deletion docs/03examples/1d_elements.ipynb

Large diffs are not rendered by default.

217 changes: 5 additions & 212 deletions docs/03examples/1d_inhom_elements.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions ttim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,14 @@ def check_inhoms(self):
raise ValueError(
f"Number of aquifers does not match {self.aq.naq}:\n{naqs}"
)
# # shared boundary check
# # NOTE: does not deal with nested inhoms
# xcoords = np.concatenate(
# [(inhom.x1, inhom.x2) for inhom in self.aq.inhomdict.values()]
# )
# xcoords.sort()
# if not np.all(np.diff(xcoords[1:-1])[::2] < 1e-10):
# raise ValueError("Not all inhomogeneities have shared boundaries.")

def initialize(self):
self.check_inhoms()
Expand Down

0 comments on commit 00bfa45

Please sign in to comment.