Skip to content
Snippets Groups Projects
Commit ece10263 authored by Norihiro Watanabe's avatar Norihiro Watanabe Committed by GitHub
Browse files

remove const from vtu_status_i

parent edbd587a
No related branches found
No related tags found
No related merge requests found
...@@ -84,9 +84,9 @@ bool VtuInterface::writeToFile(std::string const &file_name) ...@@ -84,9 +84,9 @@ bool VtuInterface::writeToFile(std::string const &file_name)
const std::string file_name_rank = file_name_base + "_" const std::string file_name_rank = file_name_base + "_"
+ std::to_string(mpi_rank) + ".vtu"; + std::to_string(mpi_rank) + ".vtu";
const bool vtu_status_i = writeVTU<vtkXMLUnstructuredGridWriter>(file_name_rank); bool vtu_status_i = writeVTU<vtkXMLUnstructuredGridWriter>(file_name_rank);
bool vtu_status = false; bool vtu_status = false;
MPI_Allreduce(const_cast<bool*>(&vtu_status_i), &vtu_status, 1, MPI_C_BOOL, MPI_LAND, PETSC_COMM_WORLD); MPI_Allreduce(&vtu_status_i, &vtu_status, 1, MPI_C_BOOL, MPI_LAND, PETSC_COMM_WORLD);
int mpi_size; int mpi_size;
MPI_Comm_size(PETSC_COMM_WORLD, &mpi_size); MPI_Comm_size(PETSC_COMM_WORLD, &mpi_size);
......
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