Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
OPAL
src
Commits
6ecb9e68
Commit
6ecb9e68
authored
Jun 03, 2020
by
frey_m
Browse files
FieldWriter: comment about file name
parent
fd1ff856
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/Structure/FieldWriter.hpp
src/Structure/FieldWriter.hpp
+14
-0
No files found.
src/Structure/FieldWriter.hpp
View file @
6ecb9e68
...
...
@@ -40,6 +40,20 @@ void FieldWriter::dumpField(FieldType& field, std::string name,
INFOMSG
(
"*** START DUMPING "
+
Util
::
toUpper
(
name
)
+
" FIELD ***"
<<
endl
);
/* Save the files in the data/ directory of the simulation. The file
* name of vector fields is
*
* 'basename'-'name'_field-'******'.dat
*
* and of scalar fields
*
* 'basename'-'name'_scalar-'******'.dat
*
* with
* 'basename': OPAL input file name (*.in)
* 'name': field name (input argument of function)
* '******': step padded with zeros to 6 digits
*/
boost
::
filesystem
::
path
file
(
"data"
);
boost
::
format
filename
(
"%1%-%2%-%|3$06|.dat"
);
std
::
string
basename
=
OpalData
::
getInstance
()
->
getInputBasename
();
...
...
Write
Preview
Markdown
is supported
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