names[i] = std::string("comp");
}
- DataOutBase::DXFlags dxflags;
- DataOutBase::GnuplotFlags gflags;
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ DataOutBase::DXFlags dxflags;
+ DataOutBase::GnuplotFlags gflags;
+
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
if (dim == 2)
DataOutBase::write_gnuplot(patches, names, vectors, gflags, out);
else
return DataOut<dim>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
// if we have enough components for a
// vector solution, make the last dim
// components a vector
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> retval;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ retval;
if (get_dataset_names().size() >= dim)
- retval.push_back(std::tuple<unsigned int, unsigned int, std::string>(
- get_dataset_names().size() - dim,
- get_dataset_names().size() - 1,
- "vector_data"));
+ retval.push_back(
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>(
+ get_dataset_names().size() - dim,
+ get_dataset_names().size() - 1,
+ "vector_data",
+ DataComponentInterpretation::component_is_part_of_vector));
return retval;
}
};
return DataOutReader<dim>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
- return DataOutReader<dim>::get_vector_data_ranges();
+ return DataOutReader<dim>::get_nonscalar_data_ranges();
}
};
Assert(data_out.get_patches()[i] == reader.get_patches()[i],
ExcInternalError());
- deallog << data_out.get_vector_data_ranges().size() << std::endl;
- Assert(data_out.get_vector_data_ranges().size() ==
- reader.get_vector_data_ranges().size(),
+ deallog << data_out.get_nonscalar_data_ranges().size() << std::endl;
+ Assert(data_out.get_nonscalar_data_ranges().size() ==
+ reader.get_nonscalar_data_ranges().size(),
ExcInternalError());
- for (unsigned int i = 0; i < data_out.get_vector_data_ranges().size(); ++i)
+ for (unsigned int i = 0; i < data_out.get_nonscalar_data_ranges().size(); ++i)
{
- deallog << std::get<0>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<1>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<2>(data_out.get_vector_data_ranges()[i]) << std::endl;
- Assert(std::get<0>(data_out.get_vector_data_ranges()[i]) ==
- std::get<0>(reader.get_vector_data_ranges()[i]),
+ deallog << std::get<0>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<1>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<2>(data_out.get_nonscalar_data_ranges()[i])
+ << std::endl;
+ Assert(std::get<0>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<0>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<1>(data_out.get_vector_data_ranges()[i]) ==
- std::get<1>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<1>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<1>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<2>(data_out.get_vector_data_ranges()[i]) ==
- std::get<2>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<2>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<2>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
}
DataOutBase::VtkFlags vtkflags;
DataOutBase::Deal_II_IntermediateFlags deal_II_intermediateflags;
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
WRITE(dx);
if (dim == 2)
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_dx(patches, names, vectors, flags, out);
}
std::vector<std::string> names(1);
names[0] = "CutOff";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_dx(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_eps(patches, names, vectors, flags, out);
}
std::vector<std::string> names(1);
names[0] = "CutOff";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_eps(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_gmv(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_gnuplot(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_gnuplot(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_gnuplot(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_povray(patches, names, vectors, flags, out);
}
std::vector<std::string> names(1);
names[0] = "CutOff";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_povray(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_tecplot(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_tecplot_binary(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtk(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtk(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtk(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtk(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtk(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
DataOutBase::write_vtu(patches, names, vectors, flags, out);
}
return DataOutFaces<dim>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
- return DataOutFaces<dim>::get_vector_data_ranges();
+ return DataOutFaces<dim>::get_nonscalar_data_ranges();
}
};
return DataOutReader<dim - 1, dim>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
- return DataOutReader<dim - 1, dim>::get_vector_data_ranges();
+ return DataOutReader<dim - 1, dim>::get_nonscalar_data_ranges();
}
};
AssertThrow(data_out.get_patches()[i] == reader.get_patches()[i],
ExcInternalError());
- deallog << data_out.get_vector_data_ranges().size() << std::endl;
- Assert(data_out.get_vector_data_ranges().size() ==
- reader.get_vector_data_ranges().size(),
+ deallog << data_out.get_nonscalar_data_ranges().size() << std::endl;
+ Assert(data_out.get_nonscalar_data_ranges().size() ==
+ reader.get_nonscalar_data_ranges().size(),
ExcInternalError());
- for (unsigned int i = 0; i < data_out.get_vector_data_ranges().size(); ++i)
+ for (unsigned int i = 0; i < data_out.get_nonscalar_data_ranges().size(); ++i)
{
- deallog << std::get<0>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<1>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<2>(data_out.get_vector_data_ranges()[i]) << std::endl;
- Assert(std::get<0>(data_out.get_vector_data_ranges()[i]) ==
- std::get<0>(reader.get_vector_data_ranges()[i]),
+ deallog << std::get<0>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<1>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<2>(data_out.get_nonscalar_data_ranges()[i])
+ << std::endl;
+ Assert(std::get<0>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<0>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<1>(data_out.get_vector_data_ranges()[i]) ==
- std::get<1>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<1>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<1>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<2>(data_out.get_vector_data_ranges()[i]) ==
- std::get<2>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<2>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<2>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
}
names[2] = "x3";
names[3] = "x4";
names[4] = "i";
- std::vector<std::tuple<unsigned int, unsigned int, std::string>> vectors;
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ vectors;
std::ostringstream old_data;
DataOutBase::write_deal_II_intermediate(
return DataOutRotation<dim>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
- return DataOutRotation<dim>::get_vector_data_ranges();
+ return DataOutRotation<dim>::get_nonscalar_data_ranges();
}
};
return DataOutReader<dim + 1>::get_dataset_names();
}
- std::vector<std::tuple<unsigned int, unsigned int, std::string>>
- get_vector_data_ranges() const
+ std::vector<
+ std::tuple<unsigned int,
+ unsigned int,
+ std::string,
+ DataComponentInterpretation::DataComponentInterpretation>>
+ get_nonscalar_data_ranges() const
{
- return DataOutReader<dim + 1>::get_vector_data_ranges();
+ return DataOutReader<dim + 1>::get_nonscalar_data_ranges();
}
};
AssertThrow(data_out.get_patches()[i] == reader.get_patches()[i],
ExcInternalError());
- deallog << data_out.get_vector_data_ranges().size() << std::endl;
- Assert(data_out.get_vector_data_ranges().size() ==
- reader.get_vector_data_ranges().size(),
+ deallog << data_out.get_nonscalar_data_ranges().size() << std::endl;
+ Assert(data_out.get_nonscalar_data_ranges().size() ==
+ reader.get_nonscalar_data_ranges().size(),
ExcInternalError());
- for (unsigned int i = 0; i < data_out.get_vector_data_ranges().size(); ++i)
+ for (unsigned int i = 0; i < data_out.get_nonscalar_data_ranges().size(); ++i)
{
- deallog << std::get<0>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<1>(data_out.get_vector_data_ranges()[i]) << ' '
- << std::get<2>(data_out.get_vector_data_ranges()[i]) << std::endl;
- Assert(std::get<0>(data_out.get_vector_data_ranges()[i]) ==
- std::get<0>(reader.get_vector_data_ranges()[i]),
+ deallog << std::get<0>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<1>(data_out.get_nonscalar_data_ranges()[i]) << ' '
+ << std::get<2>(data_out.get_nonscalar_data_ranges()[i])
+ << std::endl;
+ Assert(std::get<0>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<0>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<1>(data_out.get_vector_data_ranges()[i]) ==
- std::get<1>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<1>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<1>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
- Assert(std::get<2>(data_out.get_vector_data_ranges()[i]) ==
- std::get<2>(reader.get_vector_data_ranges()[i]),
+ Assert(std::get<2>(data_out.get_nonscalar_data_ranges()[i]) ==
+ std::get<2>(reader.get_nonscalar_data_ranges()[i]),
ExcInternalError());
}