Commit 7069c5bd authored by Quentin Khan's avatar Quentin Khan
Browse files

Adjustments to loadFMAAndRunFMM

parent 0be3112f
...@@ -66,14 +66,11 @@ int main(int argc, char** argv) ...@@ -66,14 +66,11 @@ int main(int argc, char** argv)
// GCC versions before 5.0 have not implemented move constructors to streams // GCC versions before 5.0 have not implemented move constructors to streams
std::vector<std::unique_ptr<std::ofstream>> outfiles; 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( std::unique_ptr<std::ofstream> out(
new std::ofstream( args.outFileName() new std::ofstream( args.outFileName()
+ "_" + "_" + std::to_string(args.zoneCount()) + "z"
+ std::to_string(args.zoneCount()) + "." + std::to_string(zoneIdx)
+ "z"
+ "."
+ std::to_string(i)
+ args.outFileExt())); + args.outFileExt()));
*out << "x,y,z,zone" << std::endl; *out << "x,y,z,zone" << std::endl;
outfiles.push_back(std::move(out)); outfiles.push_back(std::move(out));
......
...@@ -44,8 +44,9 @@ class loadFMAAndRunFMMArgs { ...@@ -44,8 +44,9 @@ class loadFMAAndRunFMMArgs {
TCLAP::ValueArg <std::string> TCLAP::ValueArg <std::string>
_outFileExt { "x", "output-file-extension", _outFileExt { "x", "output-file-extension",
"Output files extension. One file is created for each level in the" "Output files extension. One file is created for each level in the"
" tree. Each file has a 'basename.$i.extension' extension where $i" " tree. Each file has a 'basename_$nbZones$z.$i$.extension' "
" is the level. Default value is " + _outFileNameExtInit + ".", "extension where $i is the level. Default value is "
+ _outFileNameExtInit + ".",
false, _outFileNameExtInit, "suffix", _cmd}; false, _outFileNameExtInit, "suffix", _cmd};
TCLAP::ValueArg <std::string> TCLAP::ValueArg <std::string>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment