mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
Write logging messages to report the writing progress
This commit is contained in:
parent
17f51ed8f4
commit
d7273c7ae5
1 changed files with 7 additions and 1 deletions
|
@ -195,7 +195,7 @@ public:
|
|||
|
||||
HDFWriteGroupAttribute(fname_, "Header", "NumFilesPerSnapshot", from_value<int>(num_files_));
|
||||
|
||||
music::ilog << "Wrote SWIFT IC file(s) to " << fname_ << std::endl;
|
||||
music::ilog << "Done writing SWIFT IC file to " << fname_ << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -286,6 +286,8 @@ public:
|
|||
HDFCreateEmptyDataset<write_real_t>(fname_, std::string("PartType") + std::to_string(sid) + std::string("/InternalEnergy"), global_num_particles);
|
||||
HDFCreateEmptyDataset<write_real_t>(fname_, std::string("PartType") + std::to_string(sid) + std::string("/SmoothingLength"), global_num_particles);
|
||||
}
|
||||
|
||||
music::ilog << "Created empty arrays for PartType" << std::to_string(sid) << " into file " << fname_ << "." << std::endl;
|
||||
}
|
||||
|
||||
// compute each rank's offset in the global array
|
||||
|
@ -342,6 +344,10 @@ public:
|
|||
HDFWriteDatasetChunk(fname_, std::string("PartType") + std::to_string(sid) + std::string("/SmoothingLength"), data, offset);
|
||||
}
|
||||
}
|
||||
|
||||
if (this_rank_ == 0) {
|
||||
music::ilog << "Rank " << rank << " wrote its PartType" << std::to_string(sid) << " data to the IC file." << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_MPI
|
||||
|
|
Loading…
Reference in a new issue