Skip to content

Commit

Permalink
Enable potential limit by default
Browse files Browse the repository at this point in the history
  • Loading branch information
maximumsomething committed Feb 9, 2022
1 parent 1353c54 commit 9f6ebd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__ (self, x, y, z, charge=0, sigma=0, epsilon=0, mass=0):

class GridInfo:

def __init__(self, NDIM, XMIN=0.0, XMAX=0.0, XDIV=1, XLEVEL = 0.0, YMIN=0.0, YMAX=0.0, YDIV=1, YLEVEL = 0.0, ZMIN=0.0, ZMAX=0.0, ZDIV=1, ZLEVEL = 0.0, Analytic = False, UserFunction = "", Limited = False, PotentialLimit = 0.0, axis = None):
def __init__(self, NDIM, XMIN=0.0, XMAX=0.0, XDIV=1, XLEVEL = 0.0, YMIN=0.0, YMAX=0.0, YDIV=1, YLEVEL = 0.0, ZMIN=0.0, ZMAX=0.0, ZDIV=1, ZLEVEL = 0.0, Analytic = False, UserFunction = "", Limited = True, PotentialLimit = 10000, axis = None):

# We need to check here because the load function might give None instead of letting it default
if XDIV == None: XDIV = 1
Expand Down

0 comments on commit 9f6ebd0

Please sign in to comment.