1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

Fix a bug where the wrong file name was used in the output plugin super-class in MPI mode

This commit is contained in:
Matthieu Schaller 2021-02-28 19:29:23 +01:00
parent e9a6a1aa58
commit 012c306e30

View file

@ -92,6 +92,10 @@ public:
this_fname_ += "." + std::to_string(thisrank);
#endif
// Now that we modified the filename for MPI support, propagate the change to the super-class
// as it does operations on the file behind our back.
fname_ = this_fname_;
// delete output file if it exists
unlink(this_fname_.c_str());