Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
4dee72cf
Commit
4dee72cf
authored
Mar 20, 2019
by
Praetorius, Simon
Browse files
Merge branch 'feature/abs_gridfunction' into 'master'
add expression abs() to gridfunctions See merge request
!7
parents
cb01fd46
51a1bdaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/gridfunctions/OperationsGridFunction.hpp
View file @
4dee72cf
...
...
@@ -113,6 +113,13 @@ namespace AMDiS
return
invokeAtQP
(
Operation
::
Clamp
<
T
>
{
lo
,
hi
},
FWD
(
v
));
}
template
<
class
T
,
REQUIRES
(
Concepts
::
AnyGridFunction
<
T
>)
>
auto
abs
(
T
&&
value
)
{
return
invokeAtQP
([](
auto
const
&
v
)
{
using
std
::
abs
;
return
abs
(
v
);
},
FWD
(
value
));
}
/// \brief Applies \ref Operation::Sqr to GridFunction. \relates FunctorGridFunction
template
<
class
T
,
REQUIRES
(
Concepts
::
AnyGridFunction
<
T
>)
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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