Skip to content
Snippets Groups Projects
Commit 2c6f4c44 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MeL] VtkIO: Avoid unused parameters warning.

The parameters are used for PETSc compilation.
parent 07ac46bc
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,10 @@ bool VtuInterface::writeVTU(std::string const& file_name, ...@@ -72,6 +72,10 @@ bool VtuInterface::writeVTU(std::string const& file_name,
vtuWriter->SetNumberOfPieces(num_partitions); vtuWriter->SetNumberOfPieces(num_partitions);
vtuWriter->SetStartPiece(rank); vtuWriter->SetStartPiece(rank);
vtuWriter->SetEndPiece(rank); vtuWriter->SetEndPiece(rank);
#else
// avoid unused parameter warnings.
(void)num_partitions;
(void)rank;
#endif #endif
return (vtuWriter->Write() > 0); return (vtuWriter->Write() > 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment