diff --git a/palace/drivers/electrostaticsolver.cpp b/palace/drivers/electrostaticsolver.cpp index 9f2ab100e..fd5a0dfce 100644 --- a/palace/drivers/electrostaticsolver.cpp +++ b/palace/drivers/electrostaticsolver.cpp @@ -135,7 +135,7 @@ void ElectrostaticSolver::PostprocessTerminals( for (int i = 0; i < C.Height(); i++) { // Diagonal: Cᵢᵢ = 2 Uₑ(Vᵢ) / Vᵢ² = (Vᵢᵀ K Vᵢ) / Vᵢ² - auto &V_gf = postop.GetV().Real(); + auto &V_gf = postop.GetVGridFunction().Real(); auto &D_gf = postop.GetDomainPostOp().D; V_gf.SetFromTrueDofs(V[i]); postop.GetDomainPostOp().M_elec->Mult(V_gf, D_gf); diff --git a/palace/drivers/magnetostaticsolver.cpp b/palace/drivers/magnetostaticsolver.cpp index a4b025ddd..3e540e8e9 100644 --- a/palace/drivers/magnetostaticsolver.cpp +++ b/palace/drivers/magnetostaticsolver.cpp @@ -142,7 +142,7 @@ void MagnetostaticSolver::PostprocessTerminals(PostOperator &postop, for (int i = 0; i < M.Height(); i++) { // Diagonal: Mᵢᵢ = 2 Uₘ(Aᵢ) / Iᵢ² = (Aᵢᵀ K Aᵢ) / Iᵢ² - auto &A_gf = postop.GetA().Real(); + auto &A_gf = postop.GetAGridFunction().Real(); auto &H_gf = postop.GetDomainPostOp().H; A_gf.SetFromTrueDofs(A[i]); postop.GetDomainPostOp().M_mag->Mult(A_gf, H_gf); diff --git a/palace/models/postoperator.hpp b/palace/models/postoperator.hpp index ed665d18a..18cdb04d8 100644 --- a/palace/models/postoperator.hpp +++ b/palace/models/postoperator.hpp @@ -97,25 +97,25 @@ class PostOperator void SetAGridFunction(const Vector &a, bool exchange_face_nbr_data = true); // Access grid functions for field solutions. - auto &GetE() + auto &GetEGridFunction() { MFEM_ASSERT(E.has_value(), "Missing GridFunction object when accessing from PostOperator!"); return *E; } - auto &GetB() + auto &GetBGridFunction() { MFEM_ASSERT(B.has_value(), "Missing GridFunction object when accessing from PostOperator!"); return *B; } - auto &GetV() + auto &GetVGridFunction() { MFEM_ASSERT(V.has_value(), "Missing GridFunction object when accessing from PostOperator!"); return *V; } - auto &GetA() + auto &GetAGridFunction() { MFEM_ASSERT(A.has_value(), "Missing GridFunction object when accessing from PostOperator!");