Skip to content

Commit

Permalink
updating test to have solver success status
Browse files Browse the repository at this point in the history
  • Loading branch information
ralberd committed Apr 5, 2024
1 parent 4d13fd8 commit ca64be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/viscoelastic_shear_test/shear_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def write_output(Uu, p, step):
disp = self.maxDisp * np.sin(2.0 * np.pi * self.freq * time)

p = Objective.param_index_update(p, 0, disp)
Uu = EqSolver.nonlinear_equation_solve(self.objective, Uu, p, EqSolver.get_settings(), useWarmStart=False)
Uu, solverSuccess = EqSolver.nonlinear_equation_solve(self.objective, Uu, p, EqSolver.get_settings(), useWarmStart=False)
U = create_field(Uu, p.bc_data)
ivs = mechFuncs.compute_updated_internal_variables(U, p.state_data, self.dt)
p = Objective.param_index_update(p, 1, ivs)
Expand Down

0 comments on commit ca64be2

Please sign in to comment.