recover compilation on windows with old MPICH version

This commit is contained in:
Axel Kohlmeyer
2022-03-31 08:44:43 -04:00
parent 12ddc4ad12
commit 28976b8c92
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ void DumpCFGMPIIO::write_header(bigint n)
headerSize = header.size();
} else { // write data
if (me == 0)
MPI_File_write_at(mpifh,mpifo,header.c_str(),header.size(),MPI_CHAR,MPI_STATUS_IGNORE);
MPI_File_write_at(mpifh,mpifo,(void *)header.c_str(),header.size(),MPI_CHAR,MPI_STATUS_IGNORE);
mpifo += header.size();
}
}

View File

@ -245,7 +245,7 @@ void DumpXYZMPIIO::write_header(bigint n)
headerSize = header.size();
} else { // write data
if (me == 0)
MPI_File_write_at(mpifh,mpifo,header.c_str(),header.size(),MPI_CHAR,MPI_STATUS_IGNORE);
MPI_File_write_at(mpifh,mpifo,(void *)header.c_str(),header.size(),MPI_CHAR,MPI_STATUS_IGNORE);
mpifo += header.size();
}
}