Skip to content

Commit

Permalink
Tries to fix FORM convergence condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap committed Nov 23, 2022
1 parent 1bfec7c commit 92241c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UQpy/reliability/taylor_series/FORM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 92241c0

Please sign in to comment.