Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
7069c5bd
Commit
7069c5bd
authored
Mar 16, 2015
by
Quentin Khan
Browse files
Adjustments to loadFMAAndRunFMM
parent
0be3112f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/loadFMAAndRunFMM.cpp
View file @
7069c5bd
...
...
@@ -66,14 +66,11 @@ int main(int argc, char** argv)
// GCC versions before 5.0 have not implemented move constructors to streams
std
::
vector
<
std
::
unique_ptr
<
std
::
ofstream
>>
outfiles
;
for
(
int
i
=
0
;
i
<
args
.
treeHeight
();
i
++
)
{
for
(
int
zoneIdx
=
0
;
zoneIdx
<
args
.
treeHeight
();
zoneIdx
++
)
{
std
::
unique_ptr
<
std
::
ofstream
>
out
(
new
std
::
ofstream
(
args
.
outFileName
()
+
"_"
+
std
::
to_string
(
args
.
zoneCount
())
+
"z"
+
"."
+
std
::
to_string
(
i
)
+
"_"
+
std
::
to_string
(
args
.
zoneCount
())
+
"z"
+
"."
+
std
::
to_string
(
zoneIdx
)
+
args
.
outFileExt
()));
*
out
<<
"x,y,z,zone"
<<
std
::
endl
;
outfiles
.
push_back
(
std
::
move
(
out
));
...
...
Examples/loadFMAAndRunFMMArgs.hpp
View file @
7069c5bd
...
...
@@ -44,8 +44,9 @@ class loadFMAAndRunFMMArgs {
TCLAP
::
ValueArg
<
std
::
string
>
_outFileExt
{
"x"
,
"output-file-extension"
,
"Output files extension. One file is created for each level in the"
" tree. Each file has a 'basename.$i.extension' extension where $i"
" is the level. Default value is "
+
_outFileNameExtInit
+
"."
,
" tree. Each file has a 'basename_$nbZones$z.$i$.extension' "
"extension where $i is the level. Default value is "
+
_outFileNameExtInit
+
"."
,
false
,
_outFileNameExtInit
,
"suffix"
,
_cmd
};
TCLAP
::
ValueArg
<
std
::
string
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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