docs(poly): began cleaning up and adding docs

This commit is contained in:
2025-06-05 15:13:50 -04:00
parent a31c966146
commit 6e1453cf6e
4 changed files with 267 additions and 57 deletions

View File

@@ -168,6 +168,11 @@ int PolytropeOperator::get_reduced_system_size() const {
return m_reducedBlockOffsets.Last();
}
const mfem::Vector &PolytropeOperator::reconstruct_full_state_vector(const mfem::Vector &reducedState) const {
m_state.SetSubVector(m_freeDofs, reducedState); // Scatter the reduced state vector into the full state vector
return m_state;
}
void PolytropeOperator::Mult(const mfem::Vector &xFree, mfem::Vector &yFree) const {
if (!m_isFinalized) {
MFEM_ABORT("PolytropeOperator::Mult called before finalize");