*/
CellData();
+ /**
+ * Comparison operator.
+ */
+ bool
+ operator==(const CellData<structdim> &other) const;
+
/**
* Boost serialization function
*/
#ifndef DOXYGEN
-template <int structdim>
-inline CellData<structdim>::CellData()
-{
- for (unsigned int i = 0; i < GeometryInfo<structdim>::vertices_per_cell; ++i)
- vertices[i] = numbers::invalid_unsigned_int;
-
- material_id = 0;
-
- // And the manifold to be invalid
- manifold_id = numbers::flat_manifold_id;
-}
-
template <int structdim>
template <class Archive>
void
DEAL_II_NAMESPACE_OPEN
+
+template <int structdim>
+CellData<structdim>::CellData()
+ : material_id(0)
+ , manifold_id(numbers::flat_manifold_id)
+{
+ for (unsigned int i = 0; i < GeometryInfo<structdim>::vertices_per_cell; ++i)
+ vertices[i] = numbers::invalid_unsigned_int;
+}
+
+
+
+template <int structdim>
+bool
+CellData<structdim>::operator==(const CellData<structdim> &other) const
+{
+ for (unsigned int i = 0; i < GeometryInfo<structdim>::vertices_per_cell; i++)
+ if (vertices[i] != other.vertices[i])
+ return false;
+
+ if (material_id != other.material_id)
+ return false;
+
+ if (boundary_id != other.boundary_id)
+ return false;
+
+ if (manifold_id != other.manifold_id)
+ return false;
+
+ return true;
+}
+
+
+
bool
SubCellData::check_consistency(const unsigned int dim) const
{
#include "serialization.h"
-namespace dealii
-{
- template <int structdim>
- bool
- operator==(const CellData<structdim> &t1, const CellData<structdim> &t2)
- {
- for (unsigned int i = 0; i < GeometryInfo<structdim>::vertices_per_cell;
- i++)
- if (t1.vertices[i] != t2.vertices[i])
- return false;
-
- if (t1.material_id != t2.material_id)
- return false;
- if (t1.boundary_id != t2.boundary_id)
- return false;
- if (t1.manifold_id != t2.manifold_id)
- return false;
- return true;
- }
-} // namespace dealii
template <int structdim>
void