Skip to content

Commit

Permalink
Update petsc_generic_snes_solvers.pyx
Browse files Browse the repository at this point in the history
Fixes #277
  • Loading branch information
bknight1 committed Dec 10, 2024
1 parent 92a94f5 commit b94ea7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/underworld3/cython/petsc_generic_snes_solvers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@ class SNES_Stokes_SaddlePt(SolverBaseClass):
dof = section.getFieldDof(p, field)
if dof > 0:
offset = section.getFieldOffset(p, field)
if not unconstrained:
if not unconstrained and self.Unknowns.p.continuous:
indices.append(offset)
else:
cind = section.getFieldConstraintIndices(p, field)
Expand Down

0 comments on commit b94ea7f

Please sign in to comment.