20 #include "SheafSystem/constant_point.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/error_message.h" 24 #include "SheafSystem/std_limits.h" 41 _basis_deriv_values = _basis_deriv_value_buffer;
91 require(xcoord_dofs != 0);
92 require(xcoord_dofs_ub >= 0);
153 require((0 <= xindex) && (xindex <
dof_ct()));
154 require(xresult_ub >=
db());
163 xresult[0] = lcoords[xindex];
182 require(xlocal_coords != 0);
183 require(xlocal_coords_ub >=
db());
192 dof_type eps = 1000.0*numeric_limits<dof_type>::epsilon();
194 bool result = (u >= -eps) && (u <= eps);
337 require(xother != 0);
virtual constant_point * clone() const
Virtual constructor, creates 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.
virtual bool in_standard_domain(const dof_type xlocal_coords[], size_type xlocal_coords_ub) const
Return true if the specified local coordinates are in the "standard" domain; otherwise return false...
virtual int db() const
The base dimension; the dimension of the local coordinates (independent variable).
A section evaluator with a constant value over a 1D domain.
virtual bool invariant() const
Class invariant.
virtual bool invariant() const
Class invariant.
value_type * _basis_deriv_values
The result of the preceding call to basis_derivs_at_coord.
sec_vd_dof_type dof_type
The type of degree of freedom.
virtual size_type dof_ct() const
The number of dofs required for each component of the dependent variable.
Abstract base class with useful features for all objects.
virtual value_type volume(const dof_type xcoord_dofs[], size_type xcoord_dofs_ub, size_type xdf)
Volume for specified coordinate dofs xcoord_dofs and fiber space dimension xdf.
constant_point()
Default constructor.
unsigned long size_type
An unsigned integral type used to represent sizes and capacities.
virtual constant_point & operator=(const section_evaluator &xother)
Assignment operator.
chart_point_coord_type coord_type
The type of local coordinate; the scalar type for the local coordinate vector space.
vd_value_type value_type
The type of component in the value; the scalar type in the range vector space.
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
An abstract local section evaluator; a map from {local coordinates x dofs} to section value...
bool invariant_check() const
True if invariant checking is enabled.
int_type pod_index_type
The plain old data index type.
virtual void local_coordinates(pod_index_type xindex, coord_type xresult[], size_type xresult_ub) const
The local coordinates of the dof with local index xindex.
const value_type * basis_values() const
The result of the preceding call to basis_at_coord.
An section evaluator with a constant value over an abstract domain.
Namespace for the fiber_bundles component of the sheaf system.
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.
value_type _basis_deriv_value_buffer[DL]
Storage for the result of the preceeding call to basis_derivs_at_coord.
virtual ~constant_point()
Destructor.