Chombo + EB  3.0
UsingNamespace.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 CH_LANG_FORT
12  #ifdef CH_XD
13  #undef DIM_NAMESPACE
14  #undef CH_XD
15  #endif
16  #ifdef CH_MULTIDIM
17  #if CH_SPACEDIM == 1
18  #define CH_XD Chombo::D1
19  #elif CH_SPACEDIM == 2
20  #define CH_XD Chombo::D2
21  #elif CH_SPACEDIM == 3
22  #define CH_XD Chombo::D3
23  #elif CH_SPACEDIM == 4
24  #define CH_XD Chombo::D4
25  #elif CH_SPACEDIM == 5
26  #define CH_XD Chombo::D5
27  #elif CH_SPACEDIM == 6
28  #define CH_XD Chombo::D6
29  #else
30  Fail now: CH_SPACEDIM must be 1, 2, 3, 4, 5 or 6.
31  #endif
32  // if we're in multidim, still access to Chombo::D(dim) namespace
33  using namespace CH_XD;
34  #else
35  #ifdef CH_NAMESPACE
36  #define CH_XD Chombo
37  #else
38  #define CH_XD
39  #endif
40  #endif
41  #ifdef CH_NAMESPACE
42  using namespace Chombo;
43  #endif
44 #endif
#define CH_SPACEDIM
Definition: SPACE.H:52
#define CH_XD
Definition: UsingNamespace.H:38
Fail now
Definition: BaseNamespaceFooter.H:15