Hermes2D  2.0
Hermes::Hermes2D::Space< Scalar >::ReferenceSpaceCreator Class Reference

Class for creating reference space. More...

#include <space.h>

Public Member Functions

 ReferenceSpaceCreator (const Space< Scalar > *coarse_space, const Mesh *ref_mesh, unsigned int order_increase=1)
 
virtual void handle_orders (Space< Scalar > *ref_space)
 
virtual Space< Scalar > * create_ref_space (bool assign_dofs=true)
 Methods that user calls to get the reference space pointer (has to be properly casted if necessary). More...
 

Detailed Description

template<typename Scalar>
class Hermes::Hermes2D::Space< Scalar >::ReferenceSpaceCreator

Class for creating reference space.

Definition at line 196 of file space.h.

Constructor & Destructor Documentation

template<typename Scalar >
Hermes::Hermes2D::Space< Scalar >::ReferenceSpaceCreator::ReferenceSpaceCreator ( const Space< Scalar > *  coarse_space,
const Mesh ref_mesh,
unsigned int  order_increase = 1 
)

Constructor.

Parameters
[in]coarse_spaceThe coarse (original) space.
[in]ref_meshThe refined mesh.
[in]order_increaseIncrease of the polynomial order.

Definition at line 618 of file space.cpp.

Member Function Documentation

template<typename Scalar >
Space< Scalar > * Hermes::Hermes2D::Space< Scalar >::ReferenceSpaceCreator::create_ref_space ( bool  assign_dofs = true)
virtual

Methods that user calls to get the reference space pointer (has to be properly casted if necessary).

Initialization.

Call to the OVERRIDABLE handling method.

Finish - MUST BE CALLED BEFORE RETURN.

Return.

Definition at line 668 of file space.cpp.

Referenced by Hermes::Hermes2D::Adapt< Scalar >::calc_err_exact().

template<typename Scalar >
void Hermes::Hermes2D::Space< Scalar >::ReferenceSpaceCreator::handle_orders ( Space< Scalar > *  ref_space)
virtual

Method that does the creation. THIS IS THE METHOD TO OVERLOAD FOR CUSTOM CREATING OF A REFERENCE SPACE.

This is the default setup, we ALWAYS increase by attribute of this functor class: 'order_increase'. This is OVERRIDABLE. Plus when overriding, one does not have to care about min / max possible values (due to shapeset, Space requirements). These are guarded internally.

Definition at line 623 of file space.cpp.


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