Skip to content

Commit d7745bd

Browse files
committed
Add a getter to NonlinearSolver too
The one in DiffSolver was necessary, but this might be useful.
1 parent 8928d0f commit d7745bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/solvers/nonlinear_solver.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ class NonlinearSolver : public ReferenceCountedObject<NonlinearSolver<T>>,
397397
_exact_constraint_enforcement = enable;
398398
}
399399

400+
bool exact_constraint_enforcement() {
401+
return _exact_constraint_enforcement;
402+
}
403+
400404
protected:
401405
/**
402406
* Whether we should reuse the linear preconditioner

0 commit comments

Comments
 (0)