Chombo + EB + MF  3.2
EBLoadBalance.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 #ifndef _EBLOADBALANCE_H_
12 #define _EBLOADBALANCE_H_
13 
14 #include "Box.H"
15 #include "ProblemDomain.H"
16 #include "Vector.H"
17 #include "REAL.H"
18 #include "EBIndexSpace.H"
19 #include "NamespaceHeader.H"
20 
21 ///
22 /**
23  Load balance a Vector of Boxes.
24  We make the loads bases on a few ad hoc ideas.
25  we shall make fully covered boxes = constant load = covered load
26  we shall say that irregular points get irregular factor more load than
27  regular points.
28  */
29 int EBLoadBalance(Vector<int>& a_proc,
30  const Vector<Box>& a_boxes,
31  const ProblemDomain& a_domain,
32  const int& a_ghosts = 0,
33  int a_coveredLoad = 10,
34  int a_irregFactor = 10,
35  bool a_verbose = false,
36  const EBIndexSpace* a_ebisPtr = Chombo_EBIS::instance() );
37 
38 #include "NamespaceFooter.H"
39 #endif
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
Definition: EBIndexSpace.H:50
static EBIndexSpace * instance()
int EBLoadBalance(Vector< int > &a_proc, const Vector< Box > &a_boxes, const ProblemDomain &a_domain, const int &a_ghosts=0, int a_coveredLoad=10, int a_irregFactor=10, bool a_verbose=false, const EBIndexSpace *a_ebisPtr=Chombo_EBIS::instance())