Skip to content
Snippets Groups Projects
Commit 717151a6 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

fix compiling error

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