Block-Structured AMR Software Framework
AMReX_Lazy.H
Go to the documentation of this file.
1 #ifndef BL_LAZY_H
2 #define BL_LAZY_H
3 #include <AMReX_Config.H>
4 
5 #include <vector>
6 #include <functional>
7 #include <algorithm>
8 
9 namespace amrex {
10 namespace Lazy
11 {
12  using Func = std::function<void()>;
13  using FuncQue = std::vector<Func>;
14 
15  extern FuncQue reduction_queue;
16 
17  void QueueReduction (Func);
18  void EvalReduction ();
19 
20  void Finalize ();
21 }
22 }
23 
24 #endif
void Finalize()
Definition: AMReX_Lazy.cpp:35
void EvalReduction()
Definition: AMReX_Lazy.cpp:20
void QueueReduction(Func f)
Definition: AMReX_Lazy.cpp:7
std::function< void()> Func
Definition: AMReX_Lazy.H:12
FuncQue reduction_queue
Definition: AMReX_Lazy.cpp:5
std::vector< Func > FuncQue
Definition: AMReX_Lazy.H:13
Definition: AMReX_Amr.cpp:49