quick fix in mpi particle writer
This commit is contained in:
@@ -40,11 +40,11 @@ void MpiParticleWriter::output_particles(
|
||||
std::uint64_t file_header_size = pad_to_blocksize(sizeof(mpi_io_header_t),
|
||||
fs_blocksize_);
|
||||
std::uint64_t cpu_headers_size = pad_to_blocksize(file_header_size
|
||||
+ sizeof(cpu_header_t), fs_blocksize_);
|
||||
+ sizeof(cpu_header_t) * total_procs, fs_blocksize_);
|
||||
|
||||
// commnicate the number of particles on all cpus
|
||||
std::uint64_t* part_bytes_in = new uint64_t[total_procs];
|
||||
std::uint64_t* part_bytes = new uint64_t[total_procs];
|
||||
std::uint64_t* part_bytes = new uint64_t[total_procs];
|
||||
|
||||
for(int i = 0; i < total_procs; i++) {
|
||||
part_bytes_in[i] = 0;
|
||||
@@ -112,7 +112,7 @@ void MpiParticleWriter::output_particles(
|
||||
status = MPI_File_set_view(file, 0, file_header_type, file_header_type,
|
||||
(char*)"native", info);
|
||||
if(status) {
|
||||
ERROR("View fo rthe file header could not be set!");
|
||||
ERROR("View for the file header could not be set!");
|
||||
}
|
||||
|
||||
status = MPI_File_write_all(file, &file_header, 1, file_header_type, &mstatus);
|
||||
@@ -139,7 +139,7 @@ void MpiParticleWriter::output_particles(
|
||||
MPI_Type_size(cpu_header_type, &typesize);
|
||||
|
||||
#if defined(debug_level1) || defined(debug_level2) || defined(debug_level3)
|
||||
DEBUG_LEVEL_1("Rank " + std::to_string(io_rank) + "has its header at offset" +
|
||||
DEBUG_LEVEL_1("Rank " + std::to_string(io_rank) + " has its header at offset " +
|
||||
std::to_string(headeroffset));
|
||||
#endif
|
||||
status = MPI_File_set_view(file, headeroffset, cpu_header_type, cpu_header_type,
|
||||
@@ -162,7 +162,7 @@ void MpiParticleWriter::output_particles(
|
||||
ERROR("File view for the particles could not be set!");
|
||||
}
|
||||
|
||||
// dump all particles like they are in memory (problematic due to the shared_ptr memeber variable...)
|
||||
// dump all particles like they are in memory
|
||||
status = MPI_File_write_all(file, particles.data(), particles.size(),
|
||||
particle_type, &mstatus);
|
||||
if(status) {
|
||||
|
||||
Reference in New Issue
Block a user