Skip to content

Commit

Permalink
Tweaked mesh and solver for fracture problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
alucantonio committed Jul 14, 2023
1 parent 5226e20 commit 9b57134
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 57 deletions.
205 changes: 149 additions & 56 deletions examples/pacman_fracture.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/dctkit/math/opt/optctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def __init__(self, prb: OptimizationProblem):
init()
# create default solver and settings
self.tao = PETSc.TAO().create()
self.tao.setType(PETSc.TAO.Type.LMVM) # Specify the solver type
self.tao.setType(PETSc.TAO.Type.BQNLS) # Specify the solver type
# create variable to store the gradient of the objective function
self.g = PETSc.Vec().createSeq(self.prb.dim)

Expand Down

0 comments on commit 9b57134

Please sign in to comment.