Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convergence large radius #113

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions timml/besselaesnumba/besselaesnumba.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ def potbeslsho(x, y, z1, z2, labda, order, ilap, naq):
lstype = 1

# Radius of convergence
Rconv = 7.0
if order > 5:
Rconv = 5.0
else:
Rconv = 7.0

# if (ilap==1) :
# istart = 1
Expand Down Expand Up @@ -183,7 +186,10 @@ def disbeslsho(x, y, z1, z2, labda, order, ilap, naq):

rv = np.zeros((2, naq))
# Radius of convergence
Rconv = 7.0
if order > 5:
Rconv = 5.0
else:
Rconv = 7.0

# lstype = 1 means line-sink
lstype = 1
Expand Down Expand Up @@ -267,7 +273,10 @@ def potbesldho(x, y, z1, z2, labda, order, ilap, naq):
rv = np.zeros(naq)

# Radius of convergence
Rconv = 7.0
if order > 5:
Rconv = 5.0
else:
Rconv = 7.0

# lstype=2 means line-doublet
lstype = 2
Expand Down Expand Up @@ -334,7 +343,10 @@ def disbesldho(x, y, z1, z2, labda, order, ilap, naq):
# and mod.Helmholtz potentials in remaining spots
rv = np.zeros((2, naq))
# Radius of convergence
Rconv = 7.0
if order > 5:
Rconv = 5.0
else:
Rconv = 7.0

# lstype=2 means line-doublet
lstype = 2
Expand Down
2 changes: 1 addition & 1 deletion timml/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def equation(self):
mat[0:, ieq : ieq + e.nunknowns] += e.potinflayers(
self.xc[icp], self.yc[icp], self.layers
).sum(0)
ieq += e.nunknowns
ieq += e.nunknowns # I decreased the tab here
# else:
# mat[0, ieq:ieq+e. nunknowns] += -1
else:
Expand Down
Loading