From 0cdfebca4842ff05ab68fde914f65db67a3d7736 Mon Sep 17 00:00:00 2001 From: Arturo Vargas Date: Mon, 21 Oct 2024 15:50:16 -0700 Subject: [PATCH] Update fem/transfer.cpp Co-authored-by: Veselin Dobrev --- fem/transfer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fem/transfer.cpp b/fem/transfer.cpp index e2631766a0..fc62a8b193 100644 --- a/fem/transfer.cpp +++ b/fem/transfer.cpp @@ -362,10 +362,8 @@ Vector L2ProjectionGridTransfer::L2Projection::MixedMassEA( { // dynamic_cast to check if QuadFuncCoeff; if yes, continue; if no, return error auto qfunc_coeff = dynamic_cast(coeff_); - if (qfunc_coeff == NULL) - { - mfem_error("Not a QuadratureFunctionCoefficient - for inside H1"); - } + MFEM_VERIFY(qfunc_coeff != NULL, + "Only QuadratureFunctionCoefficient is currently supported"); qfunc = qfunc_coeff->GetQuadFunction(); // Store the mixed mass matrix integration rule, which is assumed same on all elements ir = qfunc.GetIntRule(0);