Skip to content

Commit

Permalink
Fix a few tests with new interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
tupek2 committed Mar 8, 2024
1 parent 45e16ec commit 936291b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optimism/inverse/test/test_Hyperelastic_gradient_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def compute_energy(Uu, p):

for step in range(1, self.steps+1):
p = Objective.param_index_update(p, 0, step*Ubc_inc)
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)
storedState.append((Uu, p))

return storedState
Expand Down
2 changes: 1 addition & 1 deletion optimism/inverse/test/test_J2Plastic_inverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def compute_energy(Uu, p):
return cls.mechFuncs.compute_strain_energy(U, internalVariables)

objective = Objective.Objective(compute_energy, UuGuess, p)
cls.Uu = EqSolver.nonlinear_equation_solve(objective, UuGuess, p, EqSolver.get_settings(), useWarmStart=False)
cls.Uu, solverSuccess = EqSolver.nonlinear_equation_solve(objective, UuGuess, p, EqSolver.get_settings(), useWarmStart=False)
U = cls.dofManager.create_field(cls.Uu, cls.Ubc)
cls.ivs = cls.mechFuncs.compute_updated_internal_variables(U, cls.ivs_prev)

Expand Down

0 comments on commit 936291b

Please sign in to comment.