Skip to content

Commit

Permalink
fix pressure variable (#278)
Browse files Browse the repository at this point in the history
Update petsc_generic_snes_solvers.pyx

Fixes #277 to is not yet optimised. More work to come on that.
  • Loading branch information
bknight1 authored Jan 15, 2025
1 parent e26b413 commit 1256716
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 1256716

Please sign in to comment.