Nektar++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
library
LibUtilities
Foundations
ManagerAccess.cpp
Go to the documentation of this file.
1
///////////////////////////////////////////////////////////////////////////////
2
//
3
// File Points1D.cpp
4
//
5
// For more information, please see: http://www.nektar.info
6
//
7
// The MIT License
8
//
9
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10
// Department of Aeronautics, Imperial College London (UK), and Scientific
11
// Computing and Imaging Institute, University of Utah (USA).
12
//
13
// License for the specific language governing rights and limitations under
14
// Permission is hereby granted, free of charge, to any person obtaining a
15
// copy of this software and associated documentation files (the "Software"),
16
// to deal in the Software without restriction, including without limitation
17
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
18
// and/or sell copies of the Software, and to permit persons to whom the
19
// Software is furnished to do so, subject to the following conditions:
20
//
21
// The above copyright notice and this permission notice shall be included
22
// in all copies or substantial portions of the Software.
23
//
24
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30
// DEALINGS IN THE SOFTWARE.
31
//
32
// Description: C functions to provide access to managers.
33
//
34
///////////////////////////////////////////////////////////////////////////////
35
36
#include <loki/Singleton.h>
37
#include <
LibUtilities/Foundations/GaussPoints.h
>
38
#include <
LibUtilities/Foundations/FourierPoints.h
>
39
#include <
LibUtilities/Foundations/FourierSingleModePoints.h
>
40
#include <
LibUtilities/Foundations/BLPoints.h
>
41
#include <
LibUtilities/Foundations/PolyEPoints.h
>
42
#include <
LibUtilities/Foundations/NodalTriElec.h
>
43
#include <
LibUtilities/Foundations/NodalTetElec.h
>
44
#include <
LibUtilities/Foundations/NodalTriFekete.h
>
45
#include <
LibUtilities/Foundations/NodalTriEvenlySpaced.h
>
46
#include <
LibUtilities/Foundations/NodalTetEvenlySpaced.h
>
47
#include <
LibUtilities/Foundations/NodalPrismEvenlySpaced.h
>
48
#include <
LibUtilities/Foundations/Basis.h
>
49
#include <
LibUtilities/Foundations/Foundations.hpp
>
50
#include <
LibUtilities/Foundations/ManagerAccess.h
>
51
52
namespace
Nektar
53
{
54
namespace
LibUtilities
55
{
56
// Register all points and basis creators.
57
namespace
58
{
59
const
bool
gaussInited1 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussGaussLegendre
),
GaussPoints::Create
);
60
const
bool
gaussInited2 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMLegendre
),
GaussPoints::Create
);
61
const
bool
gaussInited3 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauPLegendre
),
GaussPoints::Create
);
62
const
bool
gaussInited4 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussLobattoLegendre
),
GaussPoints::Create
);
63
const
bool
gaussInited5 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussGaussChebyshev
),
GaussPoints::Create
);
64
const
bool
gaussInited6 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMChebyshev
),
GaussPoints::Create
);
65
const
bool
gaussInited7 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauPChebyshev
),
GaussPoints::Create
);
66
const
bool
gaussInited8 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussLobattoChebyshev
),
GaussPoints::Create
);
67
const
bool
gaussInited9 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMAlpha0Beta1
),
GaussPoints::Create
);
68
const
bool
gaussInited10 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMAlpha0Beta2
),
GaussPoints::Create
);
69
const
bool
gaussInited11 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMAlpha1Beta0
),
GaussPoints::Create
);
70
const
bool
gaussInited12 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauMAlpha2Beta0
),
GaussPoints::Create
);
71
72
const
bool
gaussInited13 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussKronrodLegendre
),
GaussPoints::Create
);
73
const
bool
gaussInited14 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauKronrodMLegendre
),
GaussPoints::Create
);
74
const
bool
gaussInited15 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussRadauKronrodMAlpha1Beta0
),
GaussPoints::Create
);
75
const
bool
gaussInited16 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eGaussLobattoKronrodLegendre
),
GaussPoints::Create
);
76
77
const
bool
fourierInited0 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eFourierEvenlySpaced
),
FourierPoints::Create
);
78
const
bool
fourierInitedSM0 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eFourierSingleModeSpaced
),
FourierSingleModePoints::Create
);
79
const
bool
BLInited0 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eBoundaryLayerPoints
),
BLPoints::Create
);
80
const
bool
BLInited1 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eBoundaryLayerPointsRev
),
BLPoints::Create
);
81
const
bool
polyeInited10 =
PointsManager
().
RegisterCreator
(PointsKey(0,
ePolyEvenlySpaced
),
PolyEPoints::Create
);
82
const
bool
NodalTriInited0 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalTriElec
),
NodalTriElec::Create
);
83
const
bool
NodalTriInited1 =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalTriFekete
),
NodalTriFekete::Create
);
84
const
bool
nodalTetElecInited =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalTetElec
),
NodalTetElec::Create
);
85
const
bool
NodalTriEveInited =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalTriEvenlySpaced
),
NodalTriEvenlySpaced::Create
);
86
const
bool
NodalTetEveInited =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalTetEvenlySpaced
),
NodalTetEvenlySpaced::Create
);
87
const
bool
NodalPrismEveInited =
PointsManager
().
RegisterCreator
(PointsKey(0,
eNodalPrismEvenlySpaced
),
NodalPrismEvenlySpaced::Create
);
88
89
const
bool
Basis_Inited =
BasisManager
().
RegisterGlobalCreator
(
Basis::Create
);
90
};
91
92
PointsManagerT
&
PointsManager
(
void
)
93
{
94
return
Loki::SingletonHolder<PointsManagerT>::Instance();
95
}
96
97
BasisManagerT
&
BasisManager
(
void
)
98
{
99
return
Loki::SingletonHolder<BasisManagerT>::Instance();
100
}
101
102
}
// end of namespace LibUtilities
103
}
// end of namespace Nektar
104
105
Generated on Wed Mar 4 2015 16:33:15 for Nektar++ by
1.8.1.2