From a4f344003f44e251c92cbdfd0440da8b1f623068 Mon Sep 17 00:00:00 2001 From: amirDahari1 Date: Mon, 13 Nov 2023 15:27:02 +0000 Subject: [PATCH] deleteing iter_limit from all check_convergence solvers --- taufactor/taufactor.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/taufactor/taufactor.py b/taufactor/taufactor.py index 44b47e8..6e7573b 100644 --- a/taufactor/taufactor.py +++ b/taufactor/taufactor.py @@ -275,8 +275,7 @@ def solve(self, iter_limit=5000, verbose=True, conv_crit=2*10**-2, D_0=1): out = out[:, 2:-2] out /= self.nn if self.iter % 50 == 0: - self.converged = self.check_convergence( - verbose, conv_crit, start, iter_limit) + self.converged = self.check_convergence(verbose, conv_crit) out -= self.conc[:, 2:-2] out *= self.cb[self.iter % 2] self.conc[:, 2:-2] += out @@ -440,8 +439,7 @@ def solve(self, iter_limit=5000, verbose=True, conv_crit=2*10**-2): self.pre_factors[5][:, 1:-1, 1:-1, :-2] out /= self.nn if self.iter % 20 == 0: - self.converged = self.check_convergence( - verbose, conv_crit, start, iter_limit) + self.converged = self.check_convergence(verbose, conv_crit) out -= self.crop(self.conc, 1) out *= self.cb[self.iter % 2] self.conc[:, 1:-1, 1:-1, 1:-1] += out @@ -449,7 +447,7 @@ def solve(self, iter_limit=5000, verbose=True, conv_crit=2*10**-2): self.end_simulation(iter_limit, verbose, start) return self.tau - def check_convergence(self, verbose, conv_crit, start, iter_limit): + def check_convergence(self, verbose, conv_crit): # print progress if self.iter % 100 == 0: self.semi_converged, self.new_fl, err = self.check_vertical_flux(