Skip to content
Snippets Groups Projects
Commit 61752d1b authored by cmaffeo2's avatar cmaffeo2
Browse files

Made it so single-replica simulations don't add ".0" suffix

parent 301ee8cf
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,15 @@ GrandBrownTown::GrandBrownTown(const Configuration& c, const char* outArg,
{
std::stringstream curr_file, restart_file, out_prefix;
curr_file << outArg << '.' << i << ".curr";
restart_file << outArg << '.' << i << ".restart";
out_prefix << outArg << '.' << i;
if (numReplicas > 1) {
curr_file << outArg << '.' << i << ".curr";
restart_file << outArg << '.' << i << ".restart";
out_prefix << outArg << '.' << i;
} else {
curr_file << outArg << ".curr";
restart_file << outArg << ".restart";
out_prefix << outArg;
}
outCurrFiles.push_back(curr_file.str());
restartFiles.push_back(restart_file.str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment