From 9603f6c636119c5631a6ea555ff5998037c215c7 Mon Sep 17 00:00:00 2001 From: Marcus Mohr <marcus.mohr@lmu.de> Date: Tue, 3 Dec 2024 17:01:10 +0100 Subject: [PATCH] Updates OperatorGenerationTest to new function names in HyTeG MRs 849 and 851 in HyTeG changed the name of the getMaxMagnitude() method to getMaxdoFMagnitude() in several FEFunction classes. This commit adapts the OperatorGenerationTest accordingly. --- .../src/OperatorGenerationTest.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hyteg_integration_tests/src/OperatorGenerationTest.hpp b/hyteg_integration_tests/src/OperatorGenerationTest.hpp index 8719f6d..0e66c40 100644 --- a/hyteg_integration_tests/src/OperatorGenerationTest.hpp +++ b/hyteg_integration_tests/src/OperatorGenerationTest.hpp @@ -220,7 +220,7 @@ void compareApply( OperatorFactory< RefOpType > refOpFactory, real_t maxAbs = 1.0; if constexpr ( std::is_same< RefDstFncType, n1e1::N1E1VectorFunction< RefType > >::value ) { - maxAbs = err.getDoFs()->getMaxMagnitude( level ); + maxAbs = err.getDoFs()->getMaxDoFMagnitude( level ); } else if constexpr ( std::is_same_v< RefDstFncType, P1VectorFunction< RefType > > || std::is_same_v< RefDstFncType, P2VectorFunction< RefType > > ) { @@ -228,7 +228,7 @@ void compareApply( OperatorFactory< RefOpType > refOpFactory, } else { - maxAbs = err.getMaxMagnitude( level ); + maxAbs = err.getMaxDoFMagnitude( level ); } const real_t threshold = thresholdOverMachineEps * precisionDict::epsilon< TestType >(); @@ -306,7 +306,7 @@ void compareGEMV( const uint_t level, real_t maxAbs = 1.0; if constexpr ( std::is_same< DstFncType, n1e1::N1E1VectorFunction< real_t > >::value ) { - maxAbs = err.getDoFs()->getMaxMagnitude( level ); + maxAbs = err.getDoFs()->getMaxDoFMagnitude( level ); } else if constexpr ( std::is_same_v< DstFncType, P1VectorFunction< real_t > > || std::is_same_v< DstFncType, P2VectorFunction< real_t > > ) { @@ -314,7 +314,7 @@ void compareGEMV( const uint_t level, } else { - maxAbs = err.getMaxMagnitude( level ); + maxAbs = err.getMaxDoFMagnitude( level ); } const real_t threshold = thresholdOverMachineEps * precisionDict::epsilon< TestType >(); @@ -393,7 +393,7 @@ void compareInvDiag( OperatorFactory< RefOpType > refOpFactory, real_t maxAbs = 1.0; if constexpr ( std::is_same< RefDiagType, n1e1::N1E1VectorFunction< RefType > >::value ) { - maxAbs = err.getDoFs()->getMaxMagnitude( level ); + maxAbs = err.getDoFs()->getMaxDoFMagnitude( level ); } else if constexpr ( std::is_same_v< RefDiagType, P1VectorFunction< RefType > > || std::is_same_v< RefDiagType, P2VectorFunction< RefType > > ) { @@ -401,7 +401,7 @@ void compareInvDiag( OperatorFactory< RefOpType > refOpFactory, } else { - maxAbs = err.getMaxMagnitude( level ); + maxAbs = err.getMaxDoFMagnitude( level ); } const real_t threshold = thresholdOverMachineEps * precisionDict::epsilon< TestType >(); -- GitLab