Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7069c5bd authored by Quentin Khan's avatar Quentin Khan
Browse files

Adjustments to loadFMAAndRunFMM

parent 0be3112f
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment