Skip to content
Snippets Groups Projects
Commit cc3804ce authored by Konstantin Kutscher's avatar Konstantin Kutscher
Browse files

fix stringstream cleaning issue in MicrophoneArrayCoProcessor

parent 3de62a71
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ bool MicrophoneArrayCoProcessor::addMicrophone(Vector3D coords)
mic->nodeIndexes = grid->getNodeIndexes(block, coords[0], coords[1], coords[2]);
microphones.push_back(mic);
strVector.push_back(new std::stringstream);
strVector.push_back(SPtr<std::stringstream>(new std::stringstream));
std::string fname = path+"/mic/mic_"+UbSystem::toString(micID)+".csv";
std::ofstream ostr;
......@@ -121,5 +121,6 @@ void MicrophoneArrayCoProcessor::writeFile(double step)
}
ostr << strVector[i]->str();
ostr.close();
strVector[i] = SPtr<std::stringstream>(new std::stringstream);
}
}
\ No newline at end of file
......@@ -45,7 +45,7 @@ private:
};
std::vector< SPtr<Mic> > microphones;
std::vector<std::stringstream* > strVector;
std::vector< SPtr<std::stringstream> > strVector;
int count;
int micID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment