for (unsigned int i = 0; i < n_q_points; ++i)
quadrature_weights[i] = quadrature.weight(i);
- for (unsigned int d = 0; d < structdim; ++d)
+ for (int d = 0; d < structdim; ++d)
{
tensor_quadrature_weights[d].resize(quadrature_1d.size());
for (unsigned int i = 0; i < quadrature_1d.size(); ++i)
std::size_t memory = sizeof(this) + quadrature.memory_consumption() +
quadrature_weights.memory_consumption() +
face_orientations.memory_consumption();
- for (unsigned int d = 0; d < structdim; ++d)
+ for (int d = 0; d < structdim; ++d)
memory += tensor_quadrature_weights[d].memory_consumption();
return memory;
}
for (unsigned int b = 0; b < src.n_blocks(); ++b)
{
+ Assert(src.block(b).locally_owned_elements().is_contiguous(),
+ ExcMessage(
+ "Using non-contiguous vector blocks is not currently "
+ "supported by DataOut and related classes. The typical "
+ "way you may end up with such vectors is if you order "
+ "degrees of freedom via DoFRenumber::component_wise() "
+ "but then group several vector components into one "
+ "vector block -- for example, all 'dim' components "
+ "of a velocity are grouped into the same vector block. "
+ "If you do this, you don't want to renumber degrees "
+ "of freedom based on vector component, but instead "
+ "based on the 'blocks' you will later use for grouping "
+ "things into vectors. Take a look at step-32 and step-55 "
+ "and how they use the second argument of "
+ "DoFRenumber::component_wise()."));
+
dst.block(b).reinit(locally_owned_dofs_b[b],
locally_relevant_dofs_b[b],
dof_handler.get_communicator());
Point<dim + 1> output;
output(component_in_dim_plus_1) = coordinate_value;
- for (unsigned int d = 0; d < dim; ++d)
+ for (int d = 0; d < dim; ++d)
{
const unsigned int component_to_write_to =
dealii::internal::coordinate_to_one_dim_higher<dim>(
* around a wrong diagnostic in gcc-10.3.0 that warns about that the
* comparison "d < dim" is always false in case of "dim == 0".
* MM 2021 */
- for (unsigned int d = 0; d < dim; ++d)
+ for (int d = 0; d < dim; ++d)
r += quad.point(i)[d];
if (r <= 1 + 1e-10)
{