36 #ifndef MULTIREGIONS_ASSEMBLYMAPCG_H
37 #define MULTIREGIONS_ASSEMBLYMAPCG_H
39 #include <boost/tuple/tuple.hpp>
47 namespace MultiRegions
56 typedef std::vector<std::map<int, int> >
DofGraph;
62 const std::vector<PeriodicEntity> &periodicEdges);
81 const std::string variable =
"DefaultVar");
87 const int numLocalCoeffs,
89 const BndCondExp &bndCondExp
93 const bool checkIfSingular
95 const std::string variable
152 const BndCondExp &bndCondExp,
154 const bool checkIfSystemSingular,
160 std::set<int> &extraDirVerts,
161 std::set<int> &extraDirEdges,
162 int &firstNonDirGraphVertId,
163 int &nExtraDirichlet,
253 #endif //MULTIREGIONS_ASSEMBLYMAPCG_H
static std::map< int, int > NullIntIntMap
AssemblyMapCG(const LibUtilities::SessionReaderSharedPtr &pSession, const std::string variable="DefaultVar")
Default constructor.
int m_maxStaticCondLevel
Maximum static condensation level.
boost::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
virtual int v_GetNumNonDirEdgeModes() const
Array< OneD, int > m_globalToUniversalMapUnique
Integer map of unique process coeffs to universal space (signed)
static const Array< OneD, BoundaryConditionShPtr > NullBoundaryConditionShPtrArray
Array< OneD, int > m_extraDirEdges
Extra dirichlet edges in parallel.
void SetUpUniversalC0ContMap(const ExpList &locExp, const PeriodicMap &perVerts=NullPeriodicMap, const PeriodicMap &perEdges=NullPeriodicMap, const PeriodicMap &perFaces=NullPeriodicMap)
int CreateGraph(const ExpList &locExp, const BndCondExp &bndCondExp, const Array< OneD, const BndCond > &bndConditions, const bool checkIfSystemSingular, const PeriodicMap &periodicVerts, const PeriodicMap &periodicEdges, const PeriodicMap &periodicFaces, DofGraph &graph, BottomUpSubStructuredGraphSharedPtr &bottomUpGraph, std::set< int > &extraDirVerts, std::set< int > &extraDirEdges, int &firstNonDirGraphVertId, int &nExtraDirichlet, int mdswitch=1)
virtual int v_GetNumNonDirFaceModes() const
int m_numLocDirBndCondDofs
Number of local boundary condition degrees of freedom.
int m_numNonDirVertexModes
Number of non Dirichlet vertex modes.
boost::shared_ptr< BottomUpSubStructuredGraph > BottomUpSubStructuredGraphSharedPtr
#define MULTI_REGIONS_EXPORT
std::map< int, std::vector< ExtraDirDof > > & GetExtraDirDofs()
Array< OneD, int > m_globalToUniversalMap
Integer map of process coeffs to universal space.
int m_numNonDirEdges
Number of Dirichlet edges.
int m_numLocalBndCondCoeffs
Number of local boundary condition coefficients.
virtual void v_Assemble(const Array< OneD, const NekDouble > &loc, Array< OneD, NekDouble > &global) const
virtual void v_GlobalToLocal(const Array< OneD, const NekDouble > &global, Array< OneD, NekDouble > &loc) const
std::map< int, std::vector< ExtraDirDof > > m_extraDirDofs
Map indicating degrees of freedom which are Dirichlet but whose value is stored on another processor...
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
void CalculateFullSystemBandWidth()
Calculate the bandwith of the full matrix system.
Array< OneD, int > m_localToGlobalMap
Integer map of local coeffs to global space.
virtual const Array< OneD, const int > & v_GetLocalToGlobalMap()
Base class for constructing local to global mapping of degrees of freedom.
int m_numNonDirFaceModes
Number of non Dirichlet face modes.
virtual void v_LocalToGlobal(const Array< OneD, const NekDouble > &loc, Array< OneD, NekDouble > &global, bool useComm) const
Base class for all multi-elemental spectral/hp expansions.
virtual int v_GetNumDirFaces() const
boost::tuple< int, int, NekDouble > ExtraDirDof
virtual AssemblyMapSharedPtr v_LinearSpaceMap(const ExpList &locexp, GlobalSysSolnType solnType)
Construct an AssemblyMapCG object which corresponds to the linear space of the current object...
Array< OneD, const SpatialDomains::BoundaryConditionShPtr > BndCond
Array< OneD, const ExpListSharedPtr > BndCondExp
StdRegions::Orientation DeterminePeriodicFaceOrient(StdRegions::Orientation faceOrient, StdRegions::Orientation perFaceOrient)
Determine relative orientation between two faces.
int m_numDirFaces
Number of Dirichlet faces.
virtual int v_GetNumDirEdges() const
static PeriodicMap NullPeriodicMap
virtual int v_GetNumNonDirFaces() const
virtual int v_GetFullSystemBandWidth() const
std::map< int, std::vector< PeriodicEntity > > PeriodicMap
virtual void v_UniversalAssemble(Array< OneD, NekDouble > &pGlobal) const
virtual const Array< OneD, const int > & v_GetExtraDirEdges()
std::vector< std::map< int, int > > DofGraph
int m_numDirEdges
Number of Dirichlet edges.
static const Array< OneD, ExpListSharedPtr > NullExpListSharedPtrArray
Array< OneD, NekDouble > m_localToGlobalSign
Integer sign of local coeffs to global space.
int m_numNonDirEdgeModes
Number of non Dirichlet edge modes.
virtual int v_GetNumNonDirVertexModes() const
static const std::vector< std::map< int, int > > NullVecIntIntMap
virtual ~AssemblyMapCG()
Destructor.
Constructs mappings for the C0 scalar continuous Galerkin formulation.
pair< int, StdRegions::Orientation > DeterminePeriodicEdgeOrientId(int meshEdgeId, StdRegions::Orientation edgeOrient, const vector< PeriodicEntity > &periodicEdges)
Determine orientation of an edge to its periodic equivalents, as well as the ID of the representative...
int m_numNonDirFaces
Number of Dirichlet faces.
virtual const Array< OneD, NekDouble > & v_GetLocalToGlobalSign() const
virtual const Array< OneD, const int > & v_GetGlobalToUniversalMapUnique()
virtual int v_GetNumNonDirEdges() const
boost::shared_ptr< AssemblyMapCG > AssemblyMapCGSharedPtr
virtual const Array< OneD, const int > & v_GetGlobalToUniversalMap()
int m_fullSystemBandWidth
Bandwith of the full matrix system (no static condensation).