21 #include "SheafSystem/constant_base_space_map_push_action.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/block.impl.h" 25 #include "SheafSystem/error_message.h" 26 #include "SheafSystem/sec_vd.h" 51 ensure(out_dofs().ct() == 0);
97 require(xoutputs.
ct() > 0);
98 require(xout_dofs.ct() >= xoutputs.
ct());
99 require_for_all(i, 0, xoutputs.
ct(), xoutputs[i]->state_is_read_accessible());
100 require_for_all(i, 0, xoutputs.
ct(),
101 xout_dofs[i]->ub() >= xoutputs[i]->schema().df());
105 for(
int i=0; i<xout_dofs.ct(); ++i)
107 xout_dofs[i]->set_ct(xout_dofs[i]->ub());
108 if((i < _out_dofs.ct()) && (xout_dofs[i]->ct() == _out_dofs[i].ct()))
110 *xout_dofs[i] = _out_dofs[i];
114 xout_dofs[i]->assign(0.0);
140 require(xother != 0);
168 ensure(is_same_type(result));
183 require(is_ancestor_of(&xother));
225 if(invariant_check())
229 disable_invariant_check();
233 invariance(base_space_map_push_action::invariant());
239 enable_invariant_check();
size_type ct() const
The number of items currently in use.
Namespace for fields component of sheaf system.
Abstract functor to compute the dofs at a destination discretization point.
constant_base_space_map_push_action()
Default constructor; creates an instance with out_dofs.ct() == 0.
virtual constant_base_space_map_push_action & operator=(const base_space_map_push_action &xother)
Assignment operator.
Abstract base class with useful features for all objects.
virtual bool invariant() const
Class invariant.
block< block< sec_vd_dof_type > > & out_dofs()
Constant values for output dofs.
virtual void operator()(pullback_map::iterator &xitr, block< sec_vd *> &xoutputs, block< block< sec_vd_dof_type > * > &xout_dofs)
Sets xout_dofs to constant out_dofs().
virtual constant_base_space_map_push_action * clone() const
Virtual constructor, makes a new instance of the same type as this.
virtual bool is_ancestor_of(const any *xother) const
Conformance test; true if other conforms to this.
Abstract functor to compute the dofs at a destination discretization point.
An auto_block with a no-initialization initialization policy.
block< block< sec_vd_dof_type > > _out_dofs
Constant value for destination dofs.
virtual ~constant_base_space_map_push_action()
Destructor.