Skip to content
Snippets Groups Projects
Commit 4aca97fe authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[tests] Erase dat files when starting test

Fix #11
parent 5bfb0738
No related branches found
No related tags found
No related merge requests found
......@@ -263,17 +263,24 @@ void OneStep::fillInDebugFile() {
/// Store data
fillInDebugVector();
/// Write description file if this is the first iteration
if (m_NbOfIt == 0) {
writeDescriptionFile();
}
/// Create file
ofstream aof;
/// Create filename
string aFileName;
assert(!m_TestName.empty());
aFileName = m_TestName;
aFileName += "TestFGPI.dat";
if (m_NbOfIt == 0) {
/// Write description file if this is the first iteration
writeDescriptionFile();
/// Erase the file if we start.
aof.open(aFileName.c_str(), ofstream::out);
aof.close();
}
/// Open file additively
aof.open(aFileName.c_str(), ofstream::app);
aof.precision(8);
aof.setf(ios::scientific, ios::floatfield);
......
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