21 #include "SheafSystem/copy_push_action.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/block.h" 25 #include "SheafSystem/error_message.h" 26 #include "SheafSystem/sec_vd.h" 37 fields::copy_push_action::
38 copy_push_action(
int xdst_df)
44 require(xdst_df >= 0);
53 ensure(
dst_df() == xdst_df);
93 #ifdef DIAGNOSTIC_OUTPUT 94 post_information_message(
"Entering copy_push_action::operator()");
101 require(xdst_dofs.
ub() >=
dst_df());
102 require(unexecutable(
"dst_dofs initialized to source value"));
110 ensure(unexecutable(
"xdst_dofs unchanged"));
114 #ifdef DIAGNOSTIC_OUTPUT 116 post_information_message(
"Leaving copy_push_action::operator()");
136 require(xother != 0);
index_type ub() const
The upper bound on the storage array. The number of items current allocated in the storage array...
Functor to compute the dofs at a destination discretization point by copying the source value to the ...
Abstract functor to compute the dofs at a destination discretization point.
Namespace for fields component of sheaf system.
bool state_is_read_accessible() const
True if this is attached and if the state is accessible for read or access control is disabled...
virtual bool invariant() const
Class invariant.
virtual ~copy_push_action()
Destructor.
Abstract base class with useful features for all objects.
virtual bool is_ancestor_of(const any *xother) const
Conformance test; true if other conforms to this.
virtual copy_push_action * clone() const
Virtual constructor, makes a new instance of the same type as this.
int _dst_df
The fiber dimension of the destination.
virtual copy_push_action & operator=(const section_pusher_push_action &xother)
Assignment operator.
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...
A section of a fiber bundle with a d-dimensional vector space fiber.
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.
bool invariant_check() const
True if invariant checking is enabled.
virtual section_space_schema_member & schema()
The restricted schema for this (mutable version).
virtual bool invariant() const
Class invariant.
int df() const
The dimension of the fiber space component.
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.