Commit 0fea5d82 authored by Siqi Ling's avatar Siqi Ling
Browse files

the arh name strategy is modified to be easy to use

parent c0085ef6
...@@ -85,8 +85,9 @@ namespace AMDiS { ...@@ -85,8 +85,9 @@ namespace AMDiS {
#if HAVE_PARALLEL_DOMAIN_AMDIS #if HAVE_PARALLEL_DOMAIN_AMDIS
paraFilename = filename; paraFilename = filename;
fn2 = fn + "_p" + boost::lexical_cast<std::string>(MPI::COMM_WORLD.Get_rank()) + "."; std::string tmp = fn;
fn += "-p" + boost::lexical_cast<std::string>(MPI::COMM_WORLD.Get_rank()) + "-"; fn = tmp + "-p" + boost::lexical_cast<std::string>(MPI::COMM_WORLD.Get_rank()) + "-";
fn2 = tmp + "_p" + boost::lexical_cast<std::string>(MPI::COMM_WORLD.Get_rank());
postfix = ""; postfix = "";
#endif #endif
...@@ -103,8 +104,8 @@ namespace AMDiS { ...@@ -103,8 +104,8 @@ namespace AMDiS {
fn += timeStr; fn += timeStr;
#if HAVE_PARALLEL_DOMAIN_AMDIS #if HAVE_PARALLEL_DOMAIN_AMDIS
fn2 += timeStr; fn2 = tmp + "." + timeStr + "_p" + boost::lexical_cast<std::string>(MPI::COMM_WORLD.Get_rank());
paraFilename += timeStr; paraFilename = paraFilename + "." + timeStr;
postfix += timeStr; postfix += timeStr;
#endif #endif
} }
......
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