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: