MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / ParReduce

Function ParReduce

Src/Base/AMReX_ParReduce.H:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 */
46template <typename... Ops, typename... Ts, BaseFabType FAB, typename F>
47typename ReduceData<Ts...>::Type
48ParReduce (TypeList<Ops...> operation_list, TypeList<Ts...> type_list,
49 FabArray<FAB> const& fa, IntVect const& nghost, F&& f)
50{
51 amrex::ignore_unused(operation_list,type_list);
52 ReduceOps<Ops...> reduce_op;
53 ReduceData<Ts...> reduce_data(reduce_op);
54 reduce_op.eval(fa, nghost, reduce_data, std::forward<F>(f));
55 return reduce_data.value(reduce_op);
56}
57
58/**
59 * \brief Parallel reduce for MultiFab/FabArray. The reduce result is local

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
N_VInvTest_MultiFabFunction · 0.85
normInfMethod · 0.85
getSolvabilityOffsetMethod · 0.85
getSolvabilityOffsetMethod · 0.85
NormHelperFunction · 0.85
DotMethod · 0.85
is_finiteMethod · 0.85
contains_nanMethod · 0.85

Calls 2

evalMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected