Chombo + EB  3.2
MultiIndex.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 _MULTIINDEX_H_
12 #define _MULTIINDEX_H_
13 
14 #if defined(CH_Darwin) && defined(__GNUC__) && ( __GNUC__ == 3 )
15 // deal with the broken isnan()/isinf() in GCC on MacOS
16 #include <unistd.h>
17 #define _GLIBCPP_USE_C99 1
18 #endif
19 
20 #include <map>
21 using std::map;
22 
23 #include "Vector.H"
24 #include "REAL.H"
25 #include "IndexTM.H"
26 
27 #include "Notation.H"
28 #include "IFData.H"
29 
30 #include "NamespaceHeader.H"
31 
32 // Generate and return a vector of all multi-indices whose magnitude (the sum
33 // of their entries) equals "a_magnitude"
34 template <int dim> void generateMultiIndices(Vector<IndexTM<int,dim> > & a_indices,
35  const int & a_magnitude);
36 
37 #include "NamespaceFooter.H"
38 
39 #include "MultiIndexImplem.H"
40 
41 #endif
one dimensional dynamic array
Definition: Vector.H:53
Definition: IndexTM.H:36
void generateMultiIndices(Vector< IndexTM< int, dim > > &a_indices, const int &a_magnitude)
Definition: MultiIndexImplem.H:18