From 1df550654489e49c55948409f16f90aeaad921d9 Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Wed, 23 Aug 2023 08:42:09 -0700 Subject: [PATCH] Fix a minor typo caught during PR review --- palace/models/spaceoperator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/palace/models/spaceoperator.cpp b/palace/models/spaceoperator.cpp index f1f056b0b..22641ee56 100644 --- a/palace/models/spaceoperator.cpp +++ b/palace/models/spaceoperator.cpp @@ -381,9 +381,6 @@ SpaceOperator::GetExtraSystemMatrix(double omega, Operator::DiagonalPolicy diag_ SumMatrixCoefficient fbr(sdim), fbi(sdim); SumCoefficient dfbr, dfbi; AddExtraSystemBdrCoefficients(omega, dfbr, dfbi, fbr, fbi); - constexpr bool complex = std::is_same::value; - MFEM_VERIFY(complex || (dfbi.empty() && fbi.empty()), - "Unexpected imaginary part in GetExtraSystemMatrix!"); if (dfbr.empty() && fbr.empty() && dfbi.empty() && fbi.empty()) { return {}; @@ -409,7 +406,8 @@ SpaceOperator::GetExtraSystemMatrix(double omega, Operator::DiagonalPolicy diag_ } else { - auto A = std::make_unique(std::move(ai), GetNDSpace()); + MFEM_VERIFY(!ai, "Unexpected imaginary part in GetExtraSystemMatrix!"); + auto A = std::make_unique(std::move(ar), GetNDSpace()); A->SetEssentialTrueDofs(nd_dbc_tdof_lists.back(), diag_policy); return A; }