Template Numerical Library version\ main:bb09b17
Loading...
Searching...
No Matches
TNL::Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real > Class Template Reference
Inheritance diagram for TNL::Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real >:
Collaboration diagram for TNL::Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real >:

Public Types

using DeviceType = typename MeshType::DeviceType
 
using IndexType = typename MeshType::GlobalIndexType
 
using MeshPointer = Pointers::SharedPointer< MeshType >
 
using MeshType = Mesh
 
using RealType = Real
 
using VectorType = Containers::VectorView< RealType, DeviceType, IndexType >
 
- Public Types inherited from TNL::Functions::Domain< Mesh::getMeshDimension(), MeshDomain >
using DeviceType
 

Public Member Functions

 MeshFunctionView (const MeshFunctionView &meshFunction)
 
template<typename Vector >
 MeshFunctionView (const MeshPointer &meshPointer, Pointers::SharedPointer< Vector > &data, const IndexType &offset=0)
 
template<typename Vector >
 MeshFunctionView (const MeshPointer &meshPointer, Vector &data, const IndexType &offset=0)
 
template<typename Vector >
void bind (const MeshPointer &meshPointer, Pointers::SharedPointer< Vector > &dataPtr, const IndexType &offset=0)
 
template<typename Vector >
void bind (const MeshPointer &meshPointer, Vector &data, const IndexType &offset=0)
 
void bind (MeshFunctionView &meshFunction)
 
template<typename Vector >
void bind (Vector &data, const IndexType &offset=0)
 
bool deepRefresh (const RealType &time=0.0) const
 
__cuda_callable__ VectorTypegetData ()
 
__cuda_callable__ const VectorTypegetData () const
 
RealType getLpNorm (const RealType &p) const
 
RealType getMaxNorm () const
 
template<typename Device = Devices::Host>
__cuda_callable__ const MeshType & getMesh () const
 
MeshPointergetMeshPointer ()
 
const MeshPointergetMeshPointer () const
 
template<typename EntityType >
RealType getValue (const EntityType &meshEntity) const
 
template<typename EntityType >
Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real >::RealType getValue (const EntityType &meshEntity) const
 
template<typename EntityType >
__cuda_callable__ Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real >::RealType & operator() (const EntityType &meshEntity, const RealType &time)
 
template<typename EntityType >
__cuda_callable__ const Functions::MeshFunctionView< Mesh, MeshEntityDimension, Real >::RealType & operator() (const EntityType &meshEntity, const RealType &time) const
 
template<typename EntityType >
__cuda_callable__ RealTypeoperator() (const EntityType &meshEntity, const RealType &time=0)
 
template<typename EntityType >
__cuda_callable__ const RealTypeoperator() (const EntityType &meshEntity, const RealType &time=0) const
 
template<typename Function >
MeshFunctionViewoperator+= (const Function &f)
 
template<typename Function >
MeshFunctionView< Mesh, MeshEntityDimension, Real > & operator+= (const Function &f)
 
template<typename Function >
MeshFunctionViewoperator-= (const Function &f)
 
template<typename Function >
MeshFunctionView< Mesh, MeshEntityDimension, Real > & operator-= (const Function &f)
 
template<typename Function >
MeshFunctionViewoperator= (const Function &f)
 
template<typename Function >
MeshFunctionView< Mesh, MeshEntityDimension, Real > & operator= (const Function &f)
 
MeshFunctionViewoperator= (const MeshFunctionView &f)
 
__cuda_callable__ RealTypeoperator[] (const IndexType &meshEntityIndex)
 
__cuda_callable__ const RealTypeoperator[] (const IndexType &meshEntityIndex) const
 
bool refresh (const RealType &time=0.0) const
 
void setMesh (const MeshPointer &meshPointer)
 
bool setup (const MeshPointer &meshPointer, const Config::ParameterContainer &parameters, const String &prefix="")
 
template<typename EntityType >
void setValue (const EntityType &meshEntity, const RealType &value)
 
bool write (const std::string &functionName, const std::string &fileName, const std::string &fileFormat="auto") const
 

Static Public Member Functions

static void configSetup (Config::ConfigDescription &config, const String &prefix="")
 
static IndexType getDofs (const MeshPointer &meshPointer)
 
static constexpr int getEntitiesDimension ()
 
static constexpr int getMeshDimension ()
 
- Static Public Member Functions inherited from TNL::Functions::Domain< Mesh::getMeshDimension(), MeshDomain >
static constexpr int getDomainDimension ()
 
static constexpr DomainType getDomainType ()
 

Protected Attributes

VectorType data
 
MeshPointer meshPointer
 

The documentation for this class was generated from the following files: