Skip to content

Commit

Permalink
Safer check for cut off value
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Jul 30, 2019
1 parent 46592ec commit 3f28a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anaflow/flow/heterogeneous.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def ext_theis2D(
# genearte rlast from a given relativ-error to farfield-transmissivity
rlast = T_CG_error(T_err, TG, sig2, corr, prop, Twell)
# generate the partition points
if rlast > 0.0:
if rlast > rwell:
rpart = specialrange_cut(rwell, rinf, parts + 1, rlast)
else:
rpart = np.array([rwell, rinf])
Expand Down Expand Up @@ -580,7 +580,7 @@ def ext_theis3D(
# genearte rlast from a given relativ-error to farfield-conductivity
rlast = K_CG_error(K_err, KG, sig2, corr, e, prop, Kwell=Kwell)
# generate the partition points
if rlast > 0.0:
if rlast > rwell:
rpart = specialrange_cut(rwell, rinf, parts + 1, rlast)
else:
rpart = np.array([rwell, rinf])
Expand Down

0 comments on commit 3f28a20

Please sign in to comment.