21 #include "SheafSystem/constant_push_action.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/error_message.h" 24 #include "SheafSystem/sec_vd.h" 35 fields::constant_push_action::
43 require(xdst_df >= 0);
44 require(xdst_dofs.
ct() == xdst_df);
53 ensure(
dst_df() == xdst_df);
62 fields::constant_push_action::
69 require(xdst_df >= 0);
80 ensure(
dst_df() == xdst_df);
130 require(xdst_dofs.
ub() >=
dst_df());
159 require(xother != 0);
block< sec_vd_dof_type > _dst_dofs
Constant value for destination dofs.
virtual constant_push_action * clone() const
Virtual constructor, makes a new instance of the same type as this.
index_type ub() const
The upper bound on the storage array. The number of items current allocated in the storage array...
size_type ct() const
The number of items currently in use.
virtual bool is_ancestor_of(const any *xother) const
Conformance test; true if other conforms to this.
virtual constant_push_action & operator=(const section_pusher_push_action &xother)
Assignment operator.
Abstract functor to compute the dofs at a destination discretization point.
block< sec_vd_dof_type > & dst_dofs()
Constant value for destination dofs.
Namespace for fields component of sheaf system.
virtual bool invariant() const
Class invariant.
bool state_is_read_accessible() const
True if this is attached and if the state is accessible for read or access control is disabled...
void reserve(index_type xub)
Makes ub() at least xub; if new storage is allocated, it is uninitialized.
virtual bool invariant() const
Class invariant.
Abstract base class with useful features for all objects.
void assign(const_reference_type xitem)
Sets the values of all items to xitem.
virtual ~constant_push_action()
Destructor.
void set_ct(size_type xct)
Sets ct() == xct.
int _dst_df
The fiber dimension of the destination.
int dst_df()
The fiber dimension of the destination.
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
virtual void operator()(pullback_map::iterator &xitr, sec_vd &xdst, block< sec_vd_dof_type > &xdst_dofs)
Computes xdst_dofs using xitr and the dofs already in xdst, as needed.
A section of a fiber bundle with a d-dimensional vector space fiber.
Abstract functor to compute the dofs at a destination discretization point.
bool invariant_check() const
True if invariant checking is enabled.
virtual section_space_schema_member & schema()
The restricted schema for this (mutable version).
int df() const
The dimension of the fiber space component.
double sec_vd_dof_type
The type of degree of freedom in the section space.
bool is_same_type(const any *other) const
True if other is the same type as this.
void enable_invariant_check() const
Enable invariant checking.