Compadre 1.5.5
Loading...
Searching...
No Matches
Compadre_USER_StandardTargetFunctionals.hpp
Go to the documentation of this file.
1// this file picks up at the beginning of the computeTargetFunctionals function
2#ifndef _USER_STANDARD_TARGET_FUNCTIONALS_HPP_
3#define _USER_STANDARD_TARGET_FUNCTIONALS_HPP_
4
7
8// hint: look in Compadre_GMLS_Target.hpp for examples
9
11 // these operations are being called at the Team level,
12 // so we call single to only perform the operation on one thread
13 Kokkos::single(Kokkos::PerThread(teamMember), [&] () {
14 // user definition for a target functional goes here
15
16
17 });
19 // these operations are being called at the Team level,
20 // so we call single to only perform the operation on one thread
21 Kokkos::single(Kokkos::PerThread(teamMember), [&] () {
22 // user definition for a different target functional goes here
23
24
25 });
26} else {
27 // if the operation was not caught by any user defined TargetFunctional,
28 // then it is returned to the toolkit to try to handle the operation
29 operation_handled = false;
30}
31
32#endif
bool some_conditions_for_another_user_defined_operation
bool some_conditions_for_a_user_defined_operation