Chombo + EB  3.0
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  int a_coveredLoad = 10,
33  int a_irregFactor = 10,
34  bool a_verbose = false,
35  const EBIndexSpace* a_ebisPtr = Chombo_EBIS::instance() );
36 
37 #include "NamespaceFooter.H"
38 #endif
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:130
Definition: EBIndexSpace.H:260
int EBLoadBalance(Vector< int > &a_proc, const Vector< Box > &a_boxes, const ProblemDomain &a_domain, int a_coveredLoad=10, int a_irregFactor=10, bool a_verbose=false, const EBIndexSpace *a_ebisPtr=Chombo_EBIS::instance())
static EBIndexSpace * instance()