SheafSystem  0.0.0.0
fields::average_base_space_map_push_action Class Reference

Functor to compute the dofs at a output discretization point by averaging the input values from all branches containing the point. More...

#include <average_base_space_map_push_action.h>

Inheritance diagram for fields::average_base_space_map_push_action:
fields::base_space_map_push_action sheaf::any

AVERAGE_BASE_SPACE_MAP_PUSH_ACTION FACET

scattered_insertion_index_space_handle_disc_id_space
 Discretization id space shared by all output sections. More...
 
block< int > _branch_cts
 Number of branches accumulated for each discretization member. More...
 
block< block< sec_vd_dof_type > > _out_dofs
 Buffer for output dofs. More...
 
 average_base_space_map_push_action ()
 Default constructor. More...
 
virtual ~average_base_space_map_push_action ()
 Destructor. More...
 

BASE_SPACE_MAP_PUSH_ACTION FACET

virtual void operator() (pullback_map::iterator &xitr, block< sec_vd *> &xoutputs, block< block< sec_vd_dof_type > * > &xout_dofs)
 Computes xout_dofs using xitr and the dofs already in xoutputs, as needed. More...
 
virtual void initialize (block< sec_vd *> &xoutputs)
 Initializes outputs as needed. More...
 
virtual void finalize (block< sec_vd *> &xoutputs)
 Finalizes outputs as needed. More...
 

ANY FACET

virtual bool is_ancestor_of (const any *xother) const
 Conformance test; true if other conforms to this. More...
 
virtual average_base_space_map_push_actionclone () const
 Virtual constructor, makes a new instance of the same type as this. More...
 
virtual average_base_space_map_push_actionoperator= (const base_space_map_push_action &xother)
 Assignment operator. More...
 
average_base_space_map_push_actionoperator= (const average_base_space_map_push_action &xother)
 Assignment operator. More...
 
virtual bool invariant () const
 Class invariant. More...
 

Additional Inherited Members

- Public Member Functions inherited from fields::base_space_map_push_action
virtual ~base_space_map_push_action ()
 Destructor. More...
 
- Public Member Functions inherited from sheaf::any
bool is_same_type (const any *other) const
 True if other is the same type as this. More...
 
virtual ~any ()
 Destructor. More...
 
bool invariant_check () const
 True if invariant checking is enabled. More...
 
void enable_invariant_check () const
 Enable invariant checking. More...
 
void disable_invariant_check () const
 Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More...
 
int disable_invariance_check_request_depth () const
 Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More...
 
- Protected Member Functions inherited from fields::base_space_map_push_action
 base_space_map_push_action ()
 Default constructor. More...
 
- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 

Detailed Description

Functor to compute the dofs at a output discretization point by averaging the input values from all branches containing the point.

Definition at line 50 of file average_base_space_map_push_action.h.

Constructor & Destructor Documentation

◆ average_base_space_map_push_action()

fields::average_base_space_map_push_action::average_base_space_map_push_action ( )

Default constructor.

Postcondition

Definition at line 42 of file average_base_space_map_push_action.cc.

References ~average_base_space_map_push_action().

◆ ~average_base_space_map_push_action()

fields::average_base_space_map_push_action::~average_base_space_map_push_action ( )
virtual

Destructor.

Definition at line 62 of file average_base_space_map_push_action.cc.

References operator()().

Referenced by average_base_space_map_push_action().

Member Function Documentation

◆ clone()

fields::average_base_space_map_push_action * fields::average_base_space_map_push_action::clone ( ) const
virtual

Virtual constructor, makes a new instance of the same type as this.

Postcondition
  • result != 0
  • is_same_type(result)

Implements fields::base_space_map_push_action.

Definition at line 290 of file average_base_space_map_push_action.cc.

References operator=().

Referenced by is_ancestor_of().

◆ finalize()

◆ initialize()

void fields::average_base_space_map_push_action::initialize ( block< sec_vd *> &  xoutputs)
virtual

◆ invariant()

bool fields::average_base_space_map_push_action::invariant ( ) const
virtual

Class invariant.

Invariant

Reimplemented from fields::base_space_map_push_action.

Definition at line 356 of file average_base_space_map_push_action.cc.

Referenced by operator=().

◆ is_ancestor_of()

bool fields::average_base_space_map_push_action::is_ancestor_of ( const any xother) const
virtual

Conformance test; true if other conforms to this.

Precondition
  • xother != 0

Reimplemented from fields::base_space_map_push_action.

Definition at line 270 of file average_base_space_map_push_action.cc.

References clone().

Referenced by finalize().

◆ operator()()

void fields::average_base_space_map_push_action::operator() ( pullback_map::iterator &  xitr,
block< sec_vd *> &  xoutputs,
block< block< sec_vd_dof_type > * > &  xout_dofs 
)
virtual

Computes xout_dofs using xitr and the dofs already in xoutputs, as needed.

Precondition
  • xoutputs.ct() > 0
  • xout_dofs.ct() >= xoutputs.ct()
  • for(int i = ( 0 ); i < ( xoutputs.ct() ); ++ i ) xoutputs[i]->state_is_read_accessible()
  • for(int i = ( 0 ); i < ( xoutputs.ct() ); ++ i ) xout_dofs[i]->ub() >= xoutputs[i]->schema().df()
Postcondition
  • -unexecutable( "xdst_dofs += xdst dofs" )

Implements fields::base_space_map_push_action.

Definition at line 87 of file average_base_space_map_push_action.cc.

References sheaf::auto_block< T, un_block_initialization_policy< T > >::base(), fiber_bundle::sec_rep_space_member::base(), sheaf::auto_block< T, un_block_initialization_policy< T > >::ct(), fiber_bundle::sec_vd::get_fiber(), and initialize().

Referenced by ~average_base_space_map_push_action().

◆ operator=() [1/2]

fields::average_base_space_map_push_action & fields::average_base_space_map_push_action::operator= ( const base_space_map_push_action xother)
virtual

Assignment operator.

Precondition
  • is_ancestor_of(&xother)
Not Implemented.
Postcondition

Reimplemented from fields::base_space_map_push_action.

Definition at line 313 of file average_base_space_map_push_action.cc.

Referenced by clone().

◆ operator=() [2/2]

fields::average_base_space_map_push_action & fields::average_base_space_map_push_action::operator= ( const average_base_space_map_push_action xother)

Assignment operator.

Not Implemented.

Postcondition

Definition at line 335 of file average_base_space_map_push_action.cc.

References invariant().

Member Data Documentation

◆ _branch_cts

block<int> fields::average_base_space_map_push_action::_branch_cts
protected

Number of branches accumulated for each discretization member.

Definition at line 82 of file average_base_space_map_push_action.h.

◆ _disc_id_space

scattered_insertion_index_space_handle* fields::average_base_space_map_push_action::_disc_id_space
protected

Discretization id space shared by all output sections.

Definition at line 77 of file average_base_space_map_push_action.h.

◆ _out_dofs

block< block<sec_vd_dof_type> > fields::average_base_space_map_push_action::_out_dofs
protected

Buffer for output dofs.

Definition at line 87 of file average_base_space_map_push_action.h.


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