36 #ifndef NEKTAR_LIBS_MULTIREGIONS_GLOBALMATRIXKEY_H
37 #define NEKTAR_LIBS_MULTIREGIONS_GLOBALMATRIXKEY_H
44 namespace MultiRegions
68 const GlobalMatrixKey &rhs);
145 StdRegions::ConstFactorMap::const_iterator found =
m_constFactors.find(factor);
146 return (*found).second;
162 StdRegions::VarCoeffMap::const_iterator found =
m_varCoeffs.find(coeff);
163 return (*found).second;
const StdRegions::VarCoeffMap & GetVarCoeffs() const
boost::shared_ptr< AssemblyMap > AssemblyMapSharedPtr
const Array< OneD, const NekDouble > & GetVarCoeff(const StdRegions::VarCoeffType &coeff) const
virtual ~GlobalMatrixKey()
Destructor.
NekDouble GetConstFactor(const StdRegions::ConstFactorType &factor) const
Returns the requested constant.
#define MULTI_REGIONS_EXPORT
std::map< ConstFactorType, NekDouble > ConstFactorMap
friend bool operator<(const GlobalMatrixKey &lhs, const GlobalMatrixKey &rhs)
Provides ordering of GlobalMatrixKey objects.
const StdRegions::ConstFactorMap & GetConstFactors() const
Returns all the constants.
GlobalMatrixKey()
Default constructor.
StdRegions::VarCoeffMap m_varCoeffs
StdRegions::ConstFactorMap m_constFactors
int GetNVarCoeffs() const
std::ostream & operator<<(std::ostream &os, const GlobalLinSysKey &rhs)
Writes information about the object to a given stream.
std::map< StdRegions::VarCoeffType, Array< OneD, NekDouble > > VarCoeffMap
LibUtilities::ShapeType GetShapeType() const
Return the expansion type associated with key.
StdRegions::MatrixType GetMatrixType() const
Return the matrix type.
Describes a matrix with ordering defined by a local to global map.
boost::shared_ptr< GlobalMatrixKey > GlobalMatrixKeySharedPtr
A pointer to a GlobalMatrixKey.
static AssemblyMapSharedPtr NullAssemblyMapSharedPtr
int GetNConstFactors() const
Returns the number of constants defined for this matrix.
bool LocToGloMapIsDefined() const
Returns true if a local to global map is defined.
AssemblyMapSharedPtr m_locToGloMap
Pointer to the local to global mapping.
LibUtilities::ShapeType m_shapeType
Stores the expansion/shape type that the matrix is to be based on.
StdRegions::MatrixType m_matrixType
Stores the matrix type based on the enum StdRegions::MatrixType.
static VarCoeffMap NullVarCoeffMap
static ConstFactorMap NullConstFactorMap