Skip to content
Snippets Groups Projects
Commit 132a3893 authored by mattijs's avatar mattijs
Browse files

BUG: cloudInfo: filePtrs_ cleared after setSize. Fixes #26

parent ca834a93
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,6 @@ void Foam::cloudInfo::read(const dictionary& dict) ...@@ -111,7 +111,6 @@ void Foam::cloudInfo::read(const dictionary& dict)
if (writeToFile()) if (writeToFile())
{ {
filePtrs_.setSize(cloudNames_.size()); filePtrs_.setSize(cloudNames_.size());
filePtrs_.clear();
forAll(filePtrs_, fileI) forAll(filePtrs_, fileI)
{ {
const word& cloudName = cloudNames_[fileI]; const word& cloudName = cloudNames_[fileI];
...@@ -160,7 +159,7 @@ void Foam::cloudInfo::write() ...@@ -160,7 +159,7 @@ void Foam::cloudInfo::write()
scalar D10 = cloud.Dij(1, 0); scalar D10 = cloud.Dij(1, 0);
scalar D32 = cloud.Dij(3, 2); scalar D32 = cloud.Dij(3, 2);
if (Pstream::master()) if (Pstream::master() && writeToFile())
{ {
writeTime(filePtrs_[cloudI]); writeTime(filePtrs_[cloudI]);
filePtrs_[cloudI] filePtrs_[cloudI]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment