Skip to content

Commit 26b6d68

Browse files
committed
Set Rconv based on order
If order > 5, Rconv =5. Otherwise it is 7
1 parent d534aa0 commit 26b6d68

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

timml/besselaesnumba/besselaesnumba.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ def potbeslsho(x, y, z1, z2, labda, order, ilap, naq):
121121
lstype = 1
122122

123123
# Radius of convergence
124-
Rconv = 5.0
124+
if order > 5:
125+
Rconv = 5.0
126+
else:
127+
Rconv = 7.0
125128

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

184187
rv = np.zeros((2, naq))
185188
# Radius of convergence
186-
Rconv = 5.0
189+
if order > 5:
190+
Rconv = 5.0
191+
else:
192+
Rconv = 7.0
187193

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

269275
# Radius of convergence
270-
Rconv = 5.0
276+
if order > 5:
277+
Rconv = 5.0
278+
else:
279+
Rconv = 7.0
271280

272281
# lstype=2 means line-doublet
273282
lstype = 2
@@ -334,7 +343,10 @@ def disbesldho(x, y, z1, z2, labda, order, ilap, naq):
334343
# and mod.Helmholtz potentials in remaining spots
335344
rv = np.zeros((2, naq))
336345
# Radius of convergence
337-
Rconv = 5.0
346+
if order > 5:
347+
Rconv = 5.0
348+
else:
349+
Rconv = 7.0
338350

339351
# lstype=2 means line-doublet
340352
lstype = 2

0 commit comments

Comments
 (0)