1 #ifndef OMEGA_H_FUNCTORS_HPP
2 #define OMEGA_H_FUNCTORS_HPP
4 #include <Omega_h_scalar.hpp>
9 typedef I64 value_type;
10 OMEGA_H_INLINE
void init(value_type& update)
const { update = 1; }
11 OMEGA_H_INLINE
void join(
12 volatile value_type& update,
const volatile value_type& input)
const {
13 update = update && input;
19 typedef promoted_t<T> value_type;
21 OMEGA_H_INLINE
void init(value_type& update)
const {
24 OMEGA_H_INLINE
void join(
25 volatile value_type& update,
const volatile value_type& input)
const {
26 update = max2(update, input);
32 typedef promoted_t<T> value_type;
34 OMEGA_H_INLINE
void init(value_type& update)
const {
37 OMEGA_H_INLINE
void join(
38 volatile value_type& update,
const volatile value_type& input)
const {
39 update = min2(update, input);
45 using value_type = promoted_t<T>;
47 OMEGA_H_INLINE
void init(value_type& update)
const { update = 0; }
48 OMEGA_H_INLINE
void join(
49 volatile value_type& update,
const volatile value_type& input)
const {
50 update = update + input;
Definition: amr_mpi_test.cpp:6
Definition: Omega_h_functors.hpp:8
Definition: Omega_h_scalar.hpp:30
Definition: Omega_h_functors.hpp:18
Definition: Omega_h_functors.hpp:31
Definition: Omega_h_functors.hpp:44