const unsigned int dummy = 0;
// re-orientation
- std::array<const unsigned int *, n_face_orientations> orientation;
- std::fill(orientation.begin(), orientation.end(), nullptr);
+ std::array<const unsigned int *, n_face_orientations> orientation = {};
if (n_face_orientations == 1)
orientation[0] = (data.data.front().nodal_at_cell_boundaries == true) ?
}
// face_to_cell_index_hermite
- std::array<const unsigned int *, n_face_orientations> index_array_hermite;
- std::fill(index_array_hermite.begin(), index_array_hermite.end(), nullptr);
+ std::array<const unsigned int *, n_face_orientations> index_array_hermite =
+ {};
if (n_face_orientations == 1)
index_array_hermite[0] =
}
// face_to_cell_index_nodal
- std::array<const unsigned int *, n_face_orientations> index_array_nodal;
- std::fill(index_array_nodal.begin(), index_array_nodal.end(), nullptr);
+ std::array<const unsigned int *, n_face_orientations> index_array_nodal =
+ {};
if (n_face_orientations == 1)
index_array_nodal[0] =
{
// TODO: this copying should not be necessary once we have introduced
// an internal-data structure
- std::array<unsigned int, VectorizedArrayType::size()> cells_;
- std::array<unsigned int, VectorizedArrayType::size()> face_no_;
- std::array<unsigned int, VectorizedArrayType::size()> face_orientation_;
-
- std::fill(cells_.begin(), cells_.end(), -1);
- std::fill(face_no_.begin(), face_no_.end(), -1);
- std::fill(face_orientation_.begin(), face_orientation_.end(), -1);
+ std::array<unsigned int, VectorizedArrayType::size()> cells_ = {};
+ std::array<unsigned int, VectorizedArrayType::size()> face_no_ = {};
+ std::array<unsigned int, VectorizedArrayType::size()>
+ face_orientation_ = {};
cells_[0] = this->cell;
face_no_[0] = this->face_no;
// TODO: this copying should not be necessary once we have introduced
// an internal-data structure
- std::array<unsigned int, VectorizedArrayType::size()> cells_;
- std::array<unsigned int, VectorizedArrayType::size()> face_no_;
- std::array<unsigned int, VectorizedArrayType::size()> face_orientation_;
-
- std::fill(cells_.begin(), cells_.end(), -1);
- std::fill(face_no_.begin(), face_no_.end(), -1);
- std::fill(face_orientation_.begin(), face_orientation_.end(), -1);
+ std::array<unsigned int, VectorizedArrayType::size()> cells_ = {};
+ std::array<unsigned int, VectorizedArrayType::size()> face_no_ = {};
+ std::array<unsigned int, VectorizedArrayType::size()> face_orientation_ = {};
cells_[0] = this->cell;
face_no_[0] = this->face_no;