35 #ifndef MULTIREGIONS_ASSEMBLYMAPCG_H
36 #define MULTIREGIONS_ASSEMBLYMAPCG_H
46 namespace MultiRegions
55 typedef std::vector<std::map<int, int> >
DofGraph;
61 const std::vector<PeriodicEntity> &periodicEdges);
80 const std::string variable =
"DefaultVar");
86 const int numLocalCoeffs,
92 const bool checkIfSingular
94 const std::string variable
160 const bool checkIfSystemSingular,
166 std::set<int> &extraDirVerts,
167 std::set<int> &extraDirEdges,
168 int &firstNonDirGraphVertId,
169 int &nExtraDirichlet,
#define MULTI_REGIONS_EXPORT
Constructs mappings for the C0 scalar continuous Galerkin formulation.
int m_maxStaticCondLevel
Maximum static condensation level.
int m_numNonDirVertexModes
Number of non Dirichlet vertex modes.
virtual const Array< OneD, const int > & v_GetGlobalToUniversalMap()
virtual int v_GetFullSystemBandWidth() const
Array< OneD, int > m_globalToUniversalMapUnique
Integer map of unique process coeffs to universal space (signed)
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_GetNumDirEdges() const
virtual int v_GetNumDirFaces() const
virtual int v_GetNumNonDirFaceModes() const
virtual const Array< OneD, const int > & v_GetLocalToGlobalMap()
virtual int v_GetNumNonDirEdgeModes() const
int m_numNonDirEdges
Number of Dirichlet edges.
std::set< int > m_parallelDirBndSign
Set indicating the local coeffs just touching parallel dirichlet boundary that have a sign change.
Array< OneD, int > m_globalToUniversalMap
Integer map of process coeffs to universal space.
virtual const Array< OneD, const int > & v_GetGlobalToUniversalMapUnique()
virtual int v_GetNumNonDirFaces() const
Array< OneD, NekDouble > m_localToGlobalSign
Integer sign of local coeffs to global space.
virtual void v_LocalToGlobal(const Array< OneD, const NekDouble > &loc, Array< OneD, NekDouble > &global, bool useComm) const
virtual int v_GetNumNonDirVertexModes() const
Array< OneD, const ExpListSharedPtr > BndCondExp
Array< OneD, int > m_extraDirEdges
Extra dirichlet edges in parallel.
int m_numLocDirBndCondDofs
Number of local boundary condition degrees of freedom.
virtual void v_Assemble(const Array< OneD, const NekDouble > &loc, Array< OneD, NekDouble > &global) const
int m_numNonDirFaceModes
Number of non Dirichlet face modes.
std::set< ExtraDirDof > & GetCopyLocalDirDofs()
int m_numNonDirEdgeModes
Number of non Dirichlet edge modes.
virtual void v_UniversalAssemble(Array< OneD, NekDouble > &pGlobal) const
int m_numDirEdges
Number of Dirichlet edges.
virtual const Array< OneD, NekDouble > & v_GetLocalToGlobalSign() const
AssemblyMapCG(const LibUtilities::SessionReaderSharedPtr &pSession, const std::string variable="DefaultVar")
Default constructor.
virtual const Array< OneD, const int > & v_GetExtraDirEdges()
int m_fullSystemBandWidth
Bandwith of the full matrix system (no static condensation).
int m_numDirFaces
Number of Dirichlet faces.
virtual int v_GetNumNonDirEdges() const
void SetUpUniversalC0ContMap(const ExpList &locExp, const PeriodicMap &perVerts=NullPeriodicMap, const PeriodicMap &perEdges=NullPeriodicMap, const PeriodicMap &perFaces=NullPeriodicMap)
virtual void v_GlobalToLocal(const Array< OneD, const NekDouble > &global, Array< OneD, NekDouble > &loc) const
std::set< int > & GetParallelDirBndSign()
void CalculateFullSystemBandWidth()
Calculate the bandwith of the full matrix system.
std::set< ExtraDirDof > m_copyLocalDirDofs
Set indicating degrees of freedom which are Dirichlet but whose value is stored on another processor.
int m_numNonDirFaces
Number of Dirichlet faces.
Array< OneD, int > m_localToGlobalMap
Integer map of local coeffs to global space.
virtual ~AssemblyMapCG()
Destructor.
Array< OneD, const SpatialDomains::BoundaryConditionShPtr > BndCond
virtual AssemblyMapSharedPtr v_LinearSpaceMap(const ExpList &locexp, GlobalSysSolnType solnType)
Construct an AssemblyMapCG object which corresponds to the linear space of the current object.
int m_numLocalBndCondCoeffs
Number of local boundary condition coefficients.
Base class for constructing local to global mapping of degrees of freedom.
Base class for all multi-elemental spectral/hp expansions.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
static PeriodicMap NullPeriodicMap
std::shared_ptr< BottomUpSubStructuredGraph > BottomUpSubStructuredGraphSharedPtr
std::shared_ptr< AssemblyMapCG > AssemblyMapCGSharedPtr
std::tuple< int, int, NekDouble > ExtraDirDof
std::vector< std::map< int, int > > DofGraph
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...
static const Array< OneD, ExpListSharedPtr > NullExpListSharedPtrArray
std::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
std::map< int, std::vector< PeriodicEntity > > PeriodicMap
static std::map< int, int > NullIntIntMap
static const std::vector< std::map< int, int > > NullVecIntIntMap
StdRegions::Orientation DeterminePeriodicFaceOrient(StdRegions::Orientation faceOrient, StdRegions::Orientation perFaceOrient)
Determine relative orientation between two faces.
static const Array< OneD, BoundaryConditionShPtr > NullBoundaryConditionShPtrArray
The above copyright notice and this permission notice shall be included.