Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
2c44d076
Commit
2c44d076
authored
Apr 04, 2022
by
Nils Kohl
🌝
Browse files
Clang wants larger epsilon in DG interpolate + evaluate test.
parent
aecaacd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/hyteg/dg/DGInterpolateEvaluateTest.cpp
View file @
2c44d076
...
...
@@ -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-1
2
);
2
,
4
,
1
,
[](
const
hyteg
::
Point3D
&
)
{
return
1
;
},
1e-1
1
);
hyteg
::
test
(
2
,
4
,
1
,
[](
const
hyteg
::
Point3D
&
x
)
{
return
x
[
0
]
-
2
*
x
[
1
];
},
1e-1
2
);
2
,
4
,
1
,
[](
const
hyteg
::
Point3D
&
x
)
{
return
x
[
0
]
-
2
*
x
[
1
];
},
1e-1
1
);
hyteg
::
test
(
3
,
3
,
1
,
[](
const
hyteg
::
Point3D
&
)
{
return
1
;
},
1e-1
2
);
3
,
3
,
1
,
[](
const
hyteg
::
Point3D
&
)
{
return
1
;
},
1e-1
1
);
hyteg
::
test
(
3
,
3
,
1
,
[](
const
hyteg
::
Point3D
&
x
)
{
return
x
[
0
]
-
2
*
x
[
1
]
+
3
*
x
[
2
];
},
1e-1
2
);
3
,
3
,
1
,
[](
const
hyteg
::
Point3D
&
x
)
{
return
x
[
0
]
-
2
*
x
[
1
]
+
3
*
x
[
2
];
},
1e-1
1
);
return
EXIT_SUCCESS
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment