Class representing domain discretization along with an associated shape.
indexes_t interior() const
Returns indexes of all internal nodes.
int size() const
Returns N, the number of nodes in this discretization.
void findSupport(callable_t &callable, Args &&... args)
Enables more readable calls to support engines.
DomainDiscretization< vec_t > discretizeWithStep(scalar_t step, int internal_type, int boundary_type) const override
Returns a discretization of this shape with approximately uniform distance step between nodes.
indexes_t boundary() const
Returns indexes of all boundary nodes.
RaggedShapeStorage< vec_t, typename sh::operator_tuple< mask, vec_t::dim >::type > computeShapes(approx_t approx, const indexes_t &indexes={}) const
Compute shapes, specified with shape flags, for this domain with given approximation for given indexe...
void writeDoubleArray(const std::string &dataset_name, const array_t &value, bool overwrite=false) const
Write given value as a 1D array of doubles.
void writeDomain(const std::string &name, const domain_t &domain, bool overwrite=false)
Writes given domain discretization to file.