mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
create OFstream on stack instead of heap
This commit is contained in:
@ -88,8 +88,7 @@ fileName IOModel::buildFilePath(word dirName) const
|
||||
path=fileName("."/dirName);
|
||||
mkDir(path,0777);
|
||||
mkDir(fileName(path/"constant"),0777);
|
||||
OFstream* stubFile = new OFstream(fileName(path/"particles.foam"));
|
||||
delete stubFile;
|
||||
OFstream stubFile(path/"particles.foam");
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user