21 template <
typename Derived>
22 KOKKOS_FUNCTION
void reduce(
Datum & datum, Real * result)
const;
24 template <
typename Derived>
25 KOKKOS_FUNCTION
void join(Real * result,
const Real * source)
const;
26 template <
typename Derived>
27 KOKKOS_FUNCTION
void init(Real * result)
const;
41template <
typename Derived>
46 Real value =
static_cast<const Derived *
>(
this)->computeValue(datum);
48 if (result[0] < value)
51 if (result[1] > value)
59template <
typename Derived>
63 result[0] = Kokkos::max(result[0], source[0]);
64 result[1] = Kokkos::min(result[1], source[1]);
65 result[2] += source[2];
66 result[3] += source[3];
69template <
typename Derived>
73 result[0] = Kokkos::Experimental::finite_min_v<Real>;
74 result[1] = Kokkos::Experimental::finite_max_v<Real>;
static InputParameters validParams()
virtual void finalize() override
Finalize.
unsigned int & _number_nodes
KokkosNodalStatistics(const InputParameters ¶meters)
KOKKOS_FUNCTION void reduce(Datum &datum, Real *result) const
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
const std::string _base_name
KOKKOS_FUNCTION void init(Real *result) const
KOKKOS_FUNCTION void join(Real *result, const Real *source) const
const InputParameters & parameters() const
Get the parameters of the object.
The Kokkos object that holds thread-private data in the parallel operations of any Kokkos object.