Skip to content
Snippets Groups Projects
Commit 6b4eb157 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Remove reconstruction performance tests

parent 3687847f
No related branches found
No related tags found
1 merge request!205High-order polynomial reconstruction
Pipeline #1982 passed
...@@ -65,9 +65,6 @@ ...@@ -65,9 +65,6 @@
#include <utils/checkpointing/WriteIQuadratureDescriptor.hpp> #include <utils/checkpointing/WriteIQuadratureDescriptor.hpp>
#include <utils/checkpointing/WriteVariableBCDescriptor.hpp> #include <utils/checkpointing/WriteVariableBCDescriptor.hpp>
#warning REMOVE
#include <scheme/test_reconstruction.hpp>
#include <memory> #include <memory>
SchemeModule::SchemeModule() SchemeModule::SchemeModule()
...@@ -759,12 +756,6 @@ 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}; MathFunctionRegisterForVh{*this};
} }
......
...@@ -14,8 +14,6 @@ add_library( ...@@ -14,8 +14,6 @@ add_library(
HyperelasticSolver.cpp HyperelasticSolver.cpp
LoadBalancer.cpp LoadBalancer.cpp
PolynomialReconstruction.cpp PolynomialReconstruction.cpp
test_reconstruction.cpp
) )
target_link_libraries( target_link_libraries(
......
#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";
}
}
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment