From 92241c0f321b5719137b6b74fb28849cc6563165 Mon Sep 17 00:00:00 2001 From: Dimitris Tsapetis Date: Wed, 23 Nov 2022 15:13:33 -0500 Subject: [PATCH] Tries to fix FORM convergence condition --- src/UQpy/reliability/taylor_series/FORM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UQpy/reliability/taylor_series/FORM.py b/src/UQpy/reliability/taylor_series/FORM.py index a3cd250fe..025128107 100644 --- a/src/UQpy/reliability/taylor_series/FORM.py +++ b/src/UQpy/reliability/taylor_series/FORM.py @@ -185,7 +185,7 @@ def run(self, seed_x: Union[list, np.ndarray] = None, g_record.append(0.0) dg_u_record = np.zeros([self.n_iterations + 1, self.dimension]) - while not converged: + while not converged and k <= self.n_iterations: self.logger.info("Number of iteration: %i", k) # FORM always starts from the standard normal space if k == 0: