DOLFIN
DOLFIN C++ interface
Public Member Functions | Public Attributes | List of all members
dolfin::GoalFunctional Class Referenceabstract

#include <GoalFunctional.h>

Inheritance diagram for dolfin::GoalFunctional:
Inheritance graph
[legend]
Collaboration diagram for dolfin::GoalFunctional:
Collaboration graph
[legend]

Public Member Functions

 GoalFunctional (std::size_t rank, std::size_t num_coefficients)
 
virtual void update_ec (const Form &a, const Form &L)=0
 
- Public Member Functions inherited from dolfin::Form
 Form (std::size_t rank, std::size_t num_coefficients)
 
 Form (std::shared_ptr< const ufc::form > ufc_form, std::vector< std::shared_ptr< const FunctionSpace >> function_spaces)
 
virtual ~Form ()
 Destructor.
 
std::size_t rank () const
 
std::size_t num_coefficients () const
 
std::size_t original_coefficient_position (std::size_t i) const
 
std::vector< std::size_t > coloring (std::size_t entity_dim) const
 
void set_mesh (std::shared_ptr< const Mesh > mesh)
 
std::shared_ptr< const Meshmesh () const
 
std::shared_ptr< const FunctionSpacefunction_space (std::size_t i) const
 
std::vector< std::shared_ptr< const FunctionSpace > > function_spaces () const
 
void set_coefficient (std::size_t i, std::shared_ptr< const GenericFunction > coefficient)
 
void set_coefficient (std::string name, std::shared_ptr< const GenericFunction > coefficient)
 
void set_coefficients (std::map< std::string, std::shared_ptr< const GenericFunction >> coefficients)
 
void set_some_coefficients (std::map< std::string, std::shared_ptr< const GenericFunction >> coefficients)
 
std::shared_ptr< const GenericFunctioncoefficient (std::size_t i) const
 
std::shared_ptr< const GenericFunctioncoefficient (std::string name) const
 
std::vector< std::shared_ptr< const GenericFunction > > coefficients () const
 
virtual std::size_t coefficient_number (const std::string &name) const
 
virtual std::string coefficient_name (std::size_t i) const
 
std::shared_ptr< const MeshFunction< std::size_t > > cell_domains () const
 
std::shared_ptr< const MeshFunction< std::size_t > > exterior_facet_domains () const
 
std::shared_ptr< const MeshFunction< std::size_t > > interior_facet_domains () const
 
std::shared_ptr< const MeshFunction< std::size_t > > vertex_domains () const
 
void set_cell_domains (std::shared_ptr< const MeshFunction< std::size_t >> cell_domains)
 
void set_exterior_facet_domains (std::shared_ptr< const MeshFunction< std::size_t >> exterior_facet_domains)
 
void set_interior_facet_domains (std::shared_ptr< const MeshFunction< std::size_t >> interior_facet_domains)
 
void set_vertex_domains (std::shared_ptr< const MeshFunction< std::size_t >> vertex_domains)
 
std::shared_ptr< const ufc::form > ufc_form () const
 
void check () const
 Check function spaces and coefficients.
 
Equation operator== (const Form &rhs) const
 Comparison operator, returning equation lhs == rhs.
 
Equation operator== (int rhs) const
 Comparison operator, returning equation lhs == 0.
 
- Public Member Functions inherited from dolfin::Hierarchical< Form >
 Hierarchical (Form &self)
 Constructor.
 
virtual ~Hierarchical ()
 Destructor.
 
std::size_t depth () const
 
bool has_parent () const
 
bool has_child () const
 
Formparent ()
 
const Formparent () const
 Return parent in hierarchy (const version).
 
std::shared_ptr< Formparent_shared_ptr ()
 
std::shared_ptr< const Formparent_shared_ptr () const
 Return shared pointer to parent (const version).
 
Formchild ()
 
const Formchild () const
 Return child in hierarchy (const version).
 
std::shared_ptr< Formchild_shared_ptr ()
 
std::shared_ptr< const Formchild_shared_ptr () const
 Return shared pointer to child (const version).
 
Formroot_node ()
 
const Formroot_node () const
 Return root node object in hierarchy (const version).
 
std::shared_ptr< Formroot_node_shared_ptr ()
 
std::shared_ptr< const Formroot_node_shared_ptr () const
 Return shared pointer to root node object in hierarchy (const version).
 
Formleaf_node ()
 
const Formleaf_node () const
 Return leaf node object in hierarchy (const version).
 
std::shared_ptr< Formleaf_node_shared_ptr ()
 
std::shared_ptr< const Formleaf_node_shared_ptr () const
 Return shared pointer to leaf node object in hierarchy (const version).
 
void set_parent (std::shared_ptr< Form > parent)
 Set parent.
 
void clear_child ()
 Clear child.
 
void set_child (std::shared_ptr< Form > child)
 Set child.
 
const Hierarchicaloperator= (const Hierarchical &hierarchical)
 Assignment operator.
 
void _debug () const
 Function useful for debugging the hierarchy.
 

Public Attributes

std::shared_ptr< ErrorControl_ec
 
- Public Attributes inherited from dolfin::Form
std::shared_ptr< const MeshFunction< std::size_t > > dx
 Domain markers for cells.
 
std::shared_ptr< const MeshFunction< std::size_t > > ds
 Domain markers for exterior facets.
 
std::shared_ptr< const MeshFunction< std::size_t > > dS
 Domain markers for interior facets.
 
std::shared_ptr< const MeshFunction< std::size_t > > dP
 Domain markers for vertices.
 

Additional Inherited Members

- Protected Attributes inherited from dolfin::Form
std::shared_ptr< const ufc::form > _ufc_form
 
std::vector< std::shared_ptr< const FunctionSpace > > _function_spaces
 
std::vector< std::shared_ptr< const GenericFunction > > _coefficients
 
std::shared_ptr< const Mesh_mesh
 

Detailed Description

A GoalFunctional is a Form of rank 0 with an associated ErrorControl.

Constructor & Destructor Documentation

◆ GoalFunctional()

GoalFunctional::GoalFunctional ( std::size_t  rank,
std::size_t  num_coefficients 
)

Create GoalFunctional

Arguments rank (int) the rank of the functional (should be 0) num_coefficients (int) the number of coefficients in functional

Member Function Documentation

◆ update_ec()

virtual void dolfin::GoalFunctional::update_ec ( const Form a,
const Form L 
)
pure virtual

Update error control instance with given forms

Arguments a (Form) a bilinear form L (Form) a linear form


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