18 #ifndef OUTPUT_MESH_HH_ 19 #define OUTPUT_MESH_HH_ 97 std::shared_ptr<ElementDataCache<double>>
nodes_;
101 std::shared_ptr<ElementDataCache<unsigned int>>
offsets_;
135 void create_identical_mesh();
141 bool refinement_criterion();
157 void create_mesh(std::shared_ptr<OutputMesh> output_mesh);
163 bool refinement_criterion();
166 #endif // OUTPUT_MESH_HH_ Class represents output mesh with continuous elements.
static const unsigned int spacedim
Shortcut instead of spacedim template. We suppose only spacedim=3 at the moment.
std::string error_control_field_name()
Returns error_control_field_name_.
Base class for Output mesh.
GeneralIterator< OutputElement > OutputElementIterator
Represents an element of the output mesh. Provides element access on the data of the output mesh (nod...
unsigned int n_elements()
Returns number of element.
Mesh * orig_mesh_
Pointer to the computational mesh.
static const Input::Type::Record & get_input_type()
The specification of output mesh.
const unsigned int max_level_
Maximal level of refinement.
Template GeneralIterator serves as general template for internal iterators.
std::shared_ptr< ElementDataCache< unsigned int > > connectivity_
Vector maps the nodes to their coordinates in vector nodes_.
std::shared_ptr< ElementDataCache< unsigned int > > offsets_
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.
unsigned int n_nodes()
Returns number of nodes.
std::shared_ptr< ElementDataCache< double > > nodes_
Vector of node coordinates. [spacedim x n_nodes].
Class represents output mesh with discontinuous elements.
virtual void create_refined_mesh()=0
Creates refined mesh.
std::string error_control_field_name_
Refinement error control field name.
virtual ~OutputMeshBase()
Input::Record input_record_
Input record for output mesh.
OutputElementIterator end()
Gives iterator to the LAST element of the output mesh.
General iterator template. Provides iterator over objects in some container.
std::shared_ptr< std::vector< unsigned int > > orig_element_indices_
Vector of element indices in the computational mesh. (Important when refining.)
OutputElementIterator begin()
Gives iterator to the FIRST element of the output mesh.
OutputMeshBase(Mesh &mesh)
Constructor. Takes computational mesh as a parameter.