Commit 2c44d076 authored by Nils Kohl's avatar Nils Kohl 🌝
Browse files

Clang wants larger epsilon in DG interpolate + evaluate test.

parent aecaacd8
......@@ -93,9 +93,8 @@ void test( int dim, uint_t level, uint_t degree, std::function< real_t( const Po
const real_t err = std::abs( value - f( coordinates ) );
WALBERLA_LOG_INFO_ON_ROOT( "Checking function at " << coordinates << ", value: " << value << ", error: " << err );
WALBERLA_CHECK_LESS( err, maxPointwiseError );
WALBERLA_CHECK_LESS(
err, maxPointwiseError, "Failed at " << coordinates << ", evaluated value: " << value << ", error: " << err );
}
}
......@@ -112,14 +111,14 @@ int main( int argc, char** argv )
hyteg::PETScManager petscManager( &argc, &argv );
hyteg::test(
2, 4, 1, []( const hyteg::Point3D& ) { return 1; }, 1e-12 );
2, 4, 1, []( const hyteg::Point3D& ) { return 1; }, 1e-11 );
hyteg::test(
2, 4, 1, []( const hyteg::Point3D& x ) { return x[0] - 2 * x[1]; }, 1e-12 );
2, 4, 1, []( const hyteg::Point3D& x ) { return x[0] - 2 * x[1]; }, 1e-11 );
hyteg::test(
3, 3, 1, []( const hyteg::Point3D& ) { return 1; }, 1e-12 );
3, 3, 1, []( const hyteg::Point3D& ) { return 1; }, 1e-11 );
hyteg::test(
3, 3, 1, []( const hyteg::Point3D& x ) { return x[0] - 2 * x[1] + 3 * x[2]; }, 1e-12 );
3, 3, 1, []( const hyteg::Point3D& x ) { return x[0] - 2 * x[1] + 3 * x[2]; }, 1e-11 );
return EXIT_SUCCESS;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment