Skip to content

Commit

Permalink
Only evaluate Keplerian part of DoubleExponentialDiskPotential when t…
Browse files Browse the repository at this point in the history
…here are points given in the Keplerian part
  • Loading branch information
jobovy committed Aug 20, 2019
1 parent f709d04 commit 3ac459d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion galpy/potential/DoubleExponentialDiskPotential.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def _evaluate(self,R,z,phi=0.,t=0.,dR=0,dphi=0):
floatIn= False
out= nu.empty(len(R))
indx= (R <= 6.)
out[True^indx]= self._kp(R[True^indx],z[True^indx])
if nu.sum(True^indx) > 1:
out[True^indx]= self._kp(R[True^indx],z[True^indx])
R4max= nu.copy(R)
R4max[(R < 1.)]= 1.
kmax= self._kmaxFac*self._beta
Expand Down

0 comments on commit 3ac459d

Please sign in to comment.