Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
jrl-walkgen
Commits
4aca97fe
Commit
4aca97fe
authored
Apr 17, 2020
by
Olivier Stasse
Browse files
[tests] Erase dat files when starting test
Fix #11
parent
5bfb0738
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/CommonTools.cpp
View file @
4aca97fe
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment