Skip to content

Commit bc6e1f3

Browse files
committed
Add reduced_system_solver API to StaticCondensation
1 parent 496b3ef commit bc6e1f3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/numerics/static_condensation.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ class StaticCondensation : public PetscMatrixShellMatrix<Number>, public DofMapB
204204
std::vector<dof_id_type> & di,
205205
const unsigned int vn) const override;
206206

207+
/**
208+
* @returns The reduced system linear solver
209+
*/
210+
LinearSolver<Number> & reduced_system_solver();
211+
207212
private:
208213
/**
209214
* Retrieves the degree of freedom values from \p global_vector corresponding to \p
@@ -326,6 +331,12 @@ inline void StaticCondensation::dont_condense_vars(const std::unordered_set<unsi
326331
_uncondensed_vars.insert(vars.begin(), vars.end());
327332
}
328333

334+
inline LinearSolver<Number> & StaticCondensation::reduced_system_solver()
335+
{
336+
libmesh_assert_msg(_reduced_solver, "Reduced system solver not built yet");
337+
return *_reduced_solver;
338+
}
339+
329340
}
330341

331342
#else

0 commit comments

Comments
 (0)