quick fix in mpi particle writer
This commit is contained in:
@@ -40,7 +40,7 @@ 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];
|
||||
@@ -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