From 6b4eb1570457dc5a0427e861266b961c8afd73ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Thu, 15 May 2025 15:28:36 +0200 Subject: [PATCH] Remove reconstruction performance tests --- src/language/modules/SchemeModule.cpp | 9 ------ src/scheme/CMakeLists.txt | 2 -- src/scheme/test_reconstruction.cpp | 46 --------------------------- src/scheme/test_reconstruction.hpp | 8 ----- 4 files changed, 65 deletions(-) delete mode 100644 src/scheme/test_reconstruction.cpp delete mode 100644 src/scheme/test_reconstruction.hpp diff --git a/src/language/modules/SchemeModule.cpp b/src/language/modules/SchemeModule.cpp index f2570a3c3..b9b789cfa 100644 --- a/src/language/modules/SchemeModule.cpp +++ b/src/language/modules/SchemeModule.cpp @@ -65,9 +65,6 @@ #include <utils/checkpointing/WriteIQuadratureDescriptor.hpp> #include <utils/checkpointing/WriteVariableBCDescriptor.hpp> -#warning REMOVE -#include <scheme/test_reconstruction.hpp> - #include <memory> SchemeModule::SchemeModule() @@ -759,12 +756,6 @@ SchemeModule::SchemeModule() )); - this->_addBuiltinFunction("test_reconstruction", std::function{[](std::shared_ptr<const DiscreteFunctionVariant> df, - size_t degree, size_t number) -> void { - // - test_reconstruction(df, degree, number); - }}); - MathFunctionRegisterForVh{*this}; } diff --git a/src/scheme/CMakeLists.txt b/src/scheme/CMakeLists.txt index 5a555c426..852a6cd75 100644 --- a/src/scheme/CMakeLists.txt +++ b/src/scheme/CMakeLists.txt @@ -14,8 +14,6 @@ add_library( HyperelasticSolver.cpp LoadBalancer.cpp PolynomialReconstruction.cpp - - test_reconstruction.cpp ) target_link_libraries( diff --git a/src/scheme/test_reconstruction.cpp b/src/scheme/test_reconstruction.cpp deleted file mode 100644 index 1353ab461..000000000 --- a/src/scheme/test_reconstruction.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include <scheme/test_reconstruction.hpp> - -#include <scheme/PolynomialReconstruction.hpp> -#include <utils/Timer.hpp> - -void -test_reconstruction(std::shared_ptr<const DiscreteFunctionVariant> df, size_t degree, size_t number) -{ - if (degree == 1) { - PolynomialReconstructionDescriptor descriptor{IntegrationMethodType::cell_center, degree}; - PolynomialReconstruction rec_builder{descriptor}; - - Timer t; - - for (size_t i = 0; i < number; ++i) { - auto rec = rec_builder.build(df); - } - - std::cout << "*** Elapsed time for " << number << " cell center reconstructions: " << t.seconds() << "s ***\n"; - } - - { - PolynomialReconstructionDescriptor descriptor{IntegrationMethodType::boundary, degree}; - PolynomialReconstruction rec_builder{descriptor}; - - Timer t; - - for (size_t i = 0; i < number; ++i) { - auto rec = rec_builder.build(df); - } - - std::cout << "*** Elapsed time for " << number << " boundary reconstructions: " << t.seconds() << "s ***\n"; - } - { - PolynomialReconstructionDescriptor descriptor{IntegrationMethodType::element, degree}; - PolynomialReconstruction rec_builder{descriptor}; - - Timer t; - - for (size_t i = 0; i < number; ++i) { - auto rec = rec_builder.build(df); - } - - std::cout << "*** Elapsed time for " << number << " element reconstructions: " << t.seconds() << "s ***\n"; - } -} diff --git a/src/scheme/test_reconstruction.hpp b/src/scheme/test_reconstruction.hpp deleted file mode 100644 index 36ed481ec..000000000 --- a/src/scheme/test_reconstruction.hpp +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef TEST_RECONSTRUCTION_HPP -#define TEST_RECONSTRUCTION_HPP - -#include <scheme/DiscreteFunctionVariant.hpp> -#warning REMOVE -void test_reconstruction(std::shared_ptr<const DiscreteFunctionVariant> df, size_t degree, size_t number); - -#endif // TEST_RECONSTRUCTION_HPP -- GitLab