diff --git a/packages/intrepid2/unit-test/Discretization/Basis/HierarchicalBases/CMakeLists.txt b/packages/intrepid2/unit-test/Discretization/Basis/HierarchicalBases/CMakeLists.txt index 2edbd03e37ab..cdd16ca01514 100644 --- a/packages/intrepid2/unit-test/Discretization/Basis/HierarchicalBases/CMakeLists.txt +++ b/packages/intrepid2/unit-test/Discretization/Basis/HierarchicalBases/CMakeLists.txt @@ -1,10 +1,10 @@ FILE(GLOB TEST_SOURCES "*.cpp") -# TRIBITS_ADD_EXECUTABLE_AND_TEST( -# Hierarchical_Basis_Tests -# SOURCES ${TEST_SOURCES} -# ARGS -# NUM_MPI_PROCS 1 -# PASS_REGULAR_EXPRESSION "TEST PASSED" -# ADD_DIR_TO_NAME -# ) + TRIBITS_ADD_EXECUTABLE_AND_TEST( + Hierarchical_Basis_Tests + SOURCES ${TEST_SOURCES} + ARGS + NUM_MPI_PROCS 1 + PASS_REGULAR_EXPRESSION "TEST PASSED" + ADD_DIR_TO_NAME + ) diff --git a/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/CMakeLists.txt b/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/CMakeLists.txt index 7f7bf7a015e7..110af0fa6201 100644 --- a/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/CMakeLists.txt +++ b/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/CMakeLists.txt @@ -1,10 +1,10 @@ FILE(GLOB TEST_SOURCES "*.cpp") -# TRIBITS_ADD_EXECUTABLE_AND_TEST( -# JacobiLegendrePolynomial_Tests -# SOURCES ${TEST_SOURCES} -# ARGS -# NUM_MPI_PROCS 1 -# PASS_REGULAR_EXPRESSION "TEST PASSED" -# ADD_DIR_TO_NAME -# ) + TRIBITS_ADD_EXECUTABLE_AND_TEST( + JacobiLegendrePolynomial_Tests + SOURCES ${TEST_SOURCES} + ARGS + NUM_MPI_PROCS 1 + PASS_REGULAR_EXPRESSION "TEST PASSED" + ADD_DIR_TO_NAME + ) diff --git a/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/IntegratedLegendreTests.cpp b/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/IntegratedLegendreTests.cpp index 788a28b10058..74d499cd86d2 100644 --- a/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/IntegratedLegendreTests.cpp +++ b/packages/intrepid2/unit-test/Shared/Polylib/LegendreJacobiPolynomials/IntegratedLegendreTests.cpp @@ -132,13 +132,17 @@ namespace for (int i=0; i<=polyOrder; i++) { - if (! approximatelyEqual(integrated_legendre_values_dt_second_path_host(i), integrated_legendre_values_dt_host(i), tol) ) + bool valuesAreBothSmall = valuesAreSmall(integrated_legendre_values_dt_second_path_host(i), integrated_legendre_values_dt_host(i), tol); + if (!valuesAreBothSmall) { - out << "for polyOrder " << i << ", x = " << x << ", t = " << t << ": "; - out << integrated_legendre_values_dt_second_path_host(i) << " != " << integrated_legendre_values_dt_host(i); - out << " (diff = " << abs(integrated_legendre_values_dt_second_path_host(i) - integrated_legendre_values_dt_host(i)); - out << "; tol = " << tol << ")\n"; - success = false; + if (! approximatelyEqual(integrated_legendre_values_dt_second_path_host(i), integrated_legendre_values_dt_host(i), tol) ) + { + out << "for polyOrder " << i << ", x = " << x << ", t = " << t << ": "; + out << integrated_legendre_values_dt_second_path_host(i) << " != " << integrated_legendre_values_dt_host(i); + out << " (diff = " << abs(integrated_legendre_values_dt_second_path_host(i) - integrated_legendre_values_dt_host(i)); + out << "; tol = " << tol << ")\n"; + success = false; + } } } }