// optimized for speed rather than disk usage. The default setting (which
// optimizes for disk usage) makes saving the output take about 4 times as
// long as running the linear solver, while setting
- // DataOutBase::VtkFlags::compression_level to
- // DataOutBase::VtkFlags::best_speed lowers this to only one fourth the time
+ // DataOutBase::CompressionLevel to
+ // best_speed lowers this to only one fourth the time
// of the linear solve.
//
// We disable the output when the mesh gets too large. A variant of this
data_out.build_patches(mapping);
DataOutBase::VtkFlags flags;
- flags.compression_level = DataOutBase::VtkFlags::best_speed;
+ flags.compression_level = DataOutBase::CompressionLevel::best_speed;
data_out.set_flags(flags);
data_out.write_vtu_with_pvtu_record(
"./", "solution", cycle, MPI_COMM_WORLD, 3);
data_out.build_patches();
DataOutBase::VtkFlags flags;
- flags.compression_level = DataOutBase::VtkFlags::best_speed;
+ flags.compression_level = DataOutBase::CompressionLevel::best_speed;
data_out.set_flags(flags);
data_out.write_vtu_with_pvtu_record(
"./", "solution", cycle, mpi_communicator, 2);
DataOut<dim>::curved_inner_cells);
DataOutBase::VtkFlags flags;
- flags.compression_level = DataOutBase::VtkFlags::best_speed;
+ flags.compression_level = DataOutBase::CompressionLevel::best_speed;
data_out.set_flags(flags);
data_out.write_vtu_with_pvtu_record(
"./", "solution_" + std::to_string(dim) + "d", cycle, MPI_COMM_WORLD, 3);
DataOutBase::VtkFlags flags(t,
cycle,
true,
- DataOutBase::VtkFlags::best_speed);
+ DataOutBase::CompressionLevel::best_speed);
data_out->set_flags(flags);
data_out->write_vtu_with_pvtu_record(
{
#ifdef DEAL_II_WITH_ZLIB
/**
- * Convert between the enum specified inside VtkFlags and the preprocessor
- * constant defined by zlib.
+ * Convert between the CompressionLevel enum (used inside VtkFlags
+ * for example) and the preprocessor constant defined by zlib.
*/
int
get_zlib_compression_level(const DataOutBase::CompressionLevel level)
# ifdef DEAL_II_WITH_MPI
/**
- * Convert between the enum specified inside VtkFlags and the preprocessor
+ * Convert between the CompressionLevel enum and the preprocessor
* constant defined by boost::iostreams::zlib.
*/
int
switch (i)
{
case (0):
- flags.compression_level = DataOutBase::VtkFlags::no_compression;
+ flags.compression_level =
+ DataOutBase::CompressionLevel::no_compression;
break;
case (1):
- flags.compression_level = DataOutBase::VtkFlags::best_speed;
+ flags.compression_level = DataOutBase::CompressionLevel::best_speed;
break;
case (2):
- flags.compression_level = DataOutBase::VtkFlags::best_compression;
+ flags.compression_level =
+ DataOutBase::CompressionLevel::best_compression;
break;
case (3):
flags.compression_level =
- DataOutBase::VtkFlags::default_compression;
+ DataOutBase::CompressionLevel::default_compression;
break;
default:
Assert(false, ExcInternalError());
}
log << "==============================\n"
- << dim << spacedim << '-' << flags.compression_level << ".vtu"
+ << dim << spacedim << '-' << i << ".vtu"
<< "\n==============================\n";
check<dim, spacedim>(flags, log);
}
data_out.build_patches();
data_out.write_deal_II_intermediate_in_parallel(
- "test.pd2", MPI_COMM_WORLD, DataOutBase::VtkFlags::no_compression);
+ "test.pd2", MPI_COMM_WORLD, DataOutBase::CompressionLevel::no_compression);
const unsigned int my_rank =
dealii::Utilities::MPI::this_mpi_process(MPI_COMM_WORLD);
data_out.build_patches();
data_out.write_deal_II_intermediate_in_parallel(
- "test.pd2", MPI_COMM_WORLD, DataOutBase::VtkFlags::best_compression);
+ "test.pd2",
+ MPI_COMM_WORLD,
+ DataOutBase::CompressionLevel::best_compression);
const unsigned int my_rank =
dealii::Utilities::MPI::this_mpi_process(MPI_COMM_WORLD);
// that the last coordinate of all nodes is non-zero.
std::ofstream fout_vtk(gridout_name + ".vtk");
GridOutFlags::Vtk flags_vtk;
- flags_vtk.compression_level = DataOutBase::VtkFlags::no_compression;
+ flags_vtk.compression_level =
+ DataOutBase::CompressionLevel::no_compression;
GridOut gridout;
gridout.set_flags(flags_vtk);
gridout.write_vtk(tria, fout_vtk);