Skip to content
Snippets Groups Projects
Commit 7505040c authored by Anthony Royer's avatar Anthony Royer
Browse files

try catch

parent ebb237f7
No related branches found
No related tags found
1 merge request!13Bug hunting
Pipeline #7963 failed
......@@ -22,17 +22,21 @@ void formulations(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo2D::triangle();
try {
gmshfem::msg::info << "Global quantity:" << gmshfem::msg::endl;
globalQuantity< std::complex< double > >();
globalQuantity< std::complex< float > >();
globalQuantity< double >();
globalQuantity< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Eigensolve" << gmshfem::msg::endl;
eigensolve< std::complex< double > >();
eigensolve< std::complex< float > >();
eigensolve< double >();
eigensolve< float >();
} catch(...) { }
removeGeo();
......
......
......@@ -20,81 +20,107 @@ void functions(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo3D::tetrahedra();
try {
gmshfem::msg::info << "Trigonometric functions:" << gmshfem::msg::endl;
trigo< std::complex< double > >();
trigo< std::complex< float > >();
trigo< double >();
trigo< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Hyperbolic functions:" << gmshfem::msg::endl;
hyperbolic< std::complex< double > >();
hyperbolic< std::complex< float > >();
hyperbolic< double >();
hyperbolic< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Logarithm functions:" << gmshfem::msg::endl;
logarithm< std::complex< double > >();
logarithm< std::complex< float > >();
logarithm< double >();
logarithm< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Root functions:" << gmshfem::msg::endl;
root< std::complex< double > >();
root< std::complex< float > >();
root< double >();
root< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Scalar functions:" << gmshfem::msg::endl;
scalarFunction< std::complex< double > >();
scalarFunction< std::complex< float > >();
scalarFunction< double >();
scalarFunction< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Vector functions:" << gmshfem::msg::endl;
vectorFunction< std::complex< double > >();
vectorFunction< std::complex< float > >();
vectorFunction< double >();
vectorFunction< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Tensor functions:" << gmshfem::msg::endl;
tensorFunction< std::complex< double > >();
tensorFunction< std::complex< float > >();
tensorFunction< double >();
tensorFunction< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Piecewise functions:" << gmshfem::msg::endl;
piecewiseFunction< std::complex< double > >();
piecewiseFunction< std::complex< float > >();
piecewiseFunction< double >();
piecewiseFunction< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Normal and tangent functions:" << gmshfem::msg::endl;
normalAndTangentFunction< std::complex< double > >();
normalAndTangentFunction< std::complex< float > >();
normalAndTangentFunction< double >();
normalAndTangentFunction< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Interpolation functions:" << gmshfem::msg::endl;
interpolation< std::complex< double > >();
interpolation< std::complex< float > >();
interpolation< double >();
interpolation< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Norm functions:" << gmshfem::msg::endl;
norm< std::complex< double > >();
norm< std::complex< float > >();
norm< double >();
norm< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Complex functions:" << gmshfem::msg::endl;
complexFunction< std::complex< double > >();
complexFunction< std::complex< float > >();
} catch(...) { }
try {
gmshfem::msg::info << "Other functions:" << gmshfem::msg::endl;
others< std::complex< double > >();
others< std::complex< float > >();
others< double >();
others< float >();
} catch(...) { }
removeGeo();
......
......
......@@ -23,17 +23,21 @@ void posts(gmshfem::common::GmshFem &gmshfem, unsigned int &numTest)
Geo2D::triangle();
try {
gmshfem::msg::info << "Integrate:" << gmshfem::msg::endl;
integrate< std::complex< double > >();
integrate< std::complex< float > >();
integrate< double >();
integrate< float >();
} catch(...) { }
try {
gmshfem::msg::info << "Save:" << gmshfem::msg::endl;
save< std::complex< double > >();
save< std::complex< float > >();
save< double >();
save< float >();
} catch(...) { }
removeGeo();
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment