DOLFIN
DOLFIN C++ interface
|
#include <MultiMeshFunctionSpace.h>
Public Member Functions | |
MultiMeshFunctionSpace (std::shared_ptr< const MultiMesh > multimesh) | |
Create multimesh function space on multimesh (shared pointer version) | |
~MultiMeshFunctionSpace () | |
Destructor. | |
std::size_t | dim () const |
std::shared_ptr< const MultiMesh > | multimesh () const |
std::shared_ptr< const MultiMeshDofMap > | dofmap () const |
std::size_t | num_parts () const |
std::shared_ptr< const FunctionSpace > | part (std::size_t i) const |
std::shared_ptr< const FunctionSpace > | view (std::size_t i) const |
void | add (std::shared_ptr< const FunctionSpace > function_space) |
void | build () |
Build multimesh function space. | |
void | build (const std::vector< dolfin::la_index > &offsets) |
void | lock_inactive_dofs (GenericMatrix &A, GenericVector &b) const |
Lock inactive dofs of a system. | |
Public Member Functions inherited from dolfin::Variable | |
Variable () | |
Create unnamed variable. | |
Variable (const std::string name, const std::string label) | |
Create variable with given name and label. | |
Variable (const Variable &variable) | |
Copy constructor. | |
virtual | ~Variable () |
Destructor. | |
const Variable & | operator= (const Variable &variable) |
Assignment operator. | |
void | rename (const std::string name, const std::string label) |
Rename variable. | |
std::string | name () const |
Return name. | |
std::string | label () const |
Return label (description) | |
std::size_t | id () const |
virtual std::string | str (bool verbose) const |
Return informal string representation (pretty-print) | |
Friends | |
class | MultiMeshSubSpace |
Additional Inherited Members | |
Public Attributes inherited from dolfin::Variable | |
Parameters | parameters |
Parameters. | |
This class represents a function space on a multimesh. It may may be created from a set of standard function spaces by repeatedly calling add(), followed by a call to build(). Note that a multimesh function space is not useful and its data structures are empty until build() has been called.
void MultiMeshFunctionSpace::add | ( | std::shared_ptr< const FunctionSpace > | function_space | ) |
Add function space
Arguments function_space (FunctionSpace) The function space.
void MultiMeshFunctionSpace::build | ( | const std::vector< dolfin::la_index > & | offsets | ) |
Build multimesh function space. This function uses offsets computed from the full function spaces on each part.
std::size_t MultiMeshFunctionSpace::dim | ( | ) | const |
Return dimension of the multimesh function space
Returns std::size_t The dimension of the multimesh function space.
std::shared_ptr< const MultiMeshDofMap > MultiMeshFunctionSpace::dofmap | ( | ) | const |
Return multimesh dofmap
Returns MultiMeshDofMap The dofmap.
std::shared_ptr< const MultiMesh > MultiMeshFunctionSpace::multimesh | ( | ) | const |
Return multimesh
Returns MultiMesh The multimesh.
std::size_t MultiMeshFunctionSpace::num_parts | ( | ) | const |
Return the number of function spaces (parts) of the multimesh function space
Returns std::size_t The number of function spaces (parts) of the multimesh function space.
std::shared_ptr< const FunctionSpace > MultiMeshFunctionSpace::part | ( | std::size_t | i | ) | const |
Return function space (part) number i
Arguments i (std::size_t) The part number
Returns FunctionSpace Function space (part) number i
std::shared_ptr< const FunctionSpace > MultiMeshFunctionSpace::view | ( | std::size_t | i | ) | const |
Return view of multimesh function space for part number i. This function differs from the part() function in that it does not return the original function space for a part, but rather a view of the common multimesh function space (dofs global to the collection of parts).
Arguments i (std::size_t) The part number
Returns FunctionSpace Function space (part) number i