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:
parent
e9a6a1aa58
commit
012c306e30
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue