Skip to content

Commit

Permalink
Fix a minor typo caught during PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Aug 23, 2023
1 parent dbaa45f commit 1df5506
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions palace/models/spaceoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<OperType, ComplexOperator>::value;
MFEM_VERIFY(complex || (dfbi.empty() && fbi.empty()),
"Unexpected imaginary part in GetExtraSystemMatrix<Operator>!");
if (dfbr.empty() && fbr.empty() && dfbi.empty() && fbi.empty())
{
return {};
Expand All @@ -409,7 +406,8 @@ SpaceOperator::GetExtraSystemMatrix(double omega, Operator::DiagonalPolicy diag_
}
else
{
auto A = std::make_unique<ParOperator>(std::move(ai), GetNDSpace());
MFEM_VERIFY(!ai, "Unexpected imaginary part in GetExtraSystemMatrix<Operator>!");
auto A = std::make_unique<ParOperator>(std::move(ar), GetNDSpace());
A->SetEssentialTrueDofs(nd_dbc_tdof_lists.back(), diag_policy);
return A;
}
Expand Down

0 comments on commit 1df5506

Please sign in to comment.