CepsLocationFlag
DataLocation: an enum that will be used by various elements of the code (pde, readers,...
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
CepsIndex CepsGlobalIndex
Many uses. Has to be signed for PETSc.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
CepsUInt CepsProcId
For CPU indices.
constexpr CepsAttribute CepsUniversal
This attribute means "everywhere".
CepsInt CepsIndex
Index rowid etc.
CepsStandardArgs getStandardArgsFrom(DegreeOfFreedom *dof)
Returns a standard args structure with data from a dof.
A degree of freedom for any kind of problem The dof can be associated to a geometrical element or not...
const CepsGlobalIndex & getGeomId() const
Get the Geom Identity for the dof (-1 means no geometric entity)
CepsGlobalIndex m_discrId
A global index used only for finite elements : it is the ID of the FE Node which may be different fro...
const CepsLocationFlag & getLocation() const
Shorcut from unknown to know the location.
CepsVertex * getVertex() const
Get the vertex pointer.
void setGeomId(CepsGlobalIndex geomId)
Set the geom id (replace the existing one)
CepsGlobalIndex m_geomId
Id of geometric entity on which the dof is defined.
Unknown * getUnknown() const
Get the unknow defined at this dof.
~DegreeOfFreedom()=default
Destructor.
Unknown * m_unknown
Link to unknown defined at that dof.
const CepsGlobalIndex & getDiscrId() const
Get the spatial discretization ID (FEnode id for FE)
void setDiscrId(CepsGlobalIndex discrId)
Set the FE node id (replace the existing one)
void setVertex(CepsVertex *vertex)
Set the vertex pointer where is defined the dof.
DegreeOfFreedom(const DegreeOfFreedom &)=delete
Copy constructor.
void setUnknown(Unknown *unknown)
Set the unknown (replace the existing one)
CepsSet< DegreeOfFreedom * > m_neigh
Pointers on nieghboring dofs.
DegreeOfFreedom & operator=(const DegreeOfFreedom &)=delete
Copy assignement.
const CepsSet< DegreeOfFreedom * > & getNeighbors() const
Neighbor dofs.
CepsVertex * m_vertex
Geometrical location of the dof.
void addNeighbor(DegreeOfFreedom *x)
Add a neihboring dof.
CepsUInt getNumberOfNeighbors() const
Neighbor dofs #.
DegreeOfFreedom()=delete
Deleted default constructor.
A class used to defined an unknown of a PDE problem The unknown can be defined on a specific region,...
An abstract class from which all objects that contain region attributes should derive.
Abstract class to describe if an entity is on a boundary or not Objects that can be located in a mesh...
Abstract class for objects that have a global index.
Abstract class for objects that contain a CPU Id.
CepsUInt getRank()
Returns current processor rank.
Structure used to pass arguments to SAFunc (see pde directory) The flags of the SAFunc allows extract...