Skip to content

Commit

Permalink
remove change in default argument from Python wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
oskooi committed Jul 29, 2021
1 parent df93c00 commit 3011577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3061,13 +3061,13 @@ def modal_volume_in_box(self, box=None, center=None, size=None):

return self.fields.modal_volume_in_box(box)

def solve_cw(self, tol=1e-5 if mp.is_single_precision() else 1e-8, maxiters=10000, L=2):
def solve_cw(self, tol=1e-8, maxiters=10000, L=2):
if self.fields is None:
raise RuntimeError('Fields must be initialized before using solve_cw')
self._evaluate_dft_objects()
return self.fields.solve_cw(tol, maxiters, L)

def solve_eigfreq(self, tol=1e-5 if mp.is_single_precision() else 1e-7, maxiters=100,
def solve_eigfreq(self, tol=1e-7, maxiters=100,
guessfreq=None, cwtol=None, cwmaxiters=10000, L=10):
if self.fields is None:
raise RuntimeError('Fields must be initialized before using solve_cw')
Expand Down

0 comments on commit 3011577

Please sign in to comment.