Skip to content
Snippets Groups Projects
Commit 6a38d4b4 authored by Jacques Xing's avatar Jacques Xing Committed by Dave Moxey
Browse files

Tidy-up parallel-in-time processing in FieldConvert

parent 8b289f7c
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,7 @@ v5.3.0
- Fix segmentation fault when no time integration method specified for unsteady problem (!1526)
- Set adjacent elements for m_bndcondExpansions for both CG and DG (!1491)
- Fix inconsisten treatment of 1D and 2D/3D expansions in DisContField::v_GetBoundaryToElmtMap (!1491)
- Tidy-up parallel-in-time processing in FieldConvert (!1529)
**Python**
- Add wrappers for Interpreter and Equation classes (!1329)
......
......@@ -270,20 +270,13 @@ int main(int argc, char *argv[])
{
fs::path ftype = inpath.extension();
string filename = inpath.stem().string();
size_t start = 0U;
size_t end = filename.find("_");
while (end != std::string::npos)
{
start = end + 1;
end = filename.find("_", start);
}
size_t start = filename.find_last_of("_") + 1;
int index =
atoi(filename.substr(start, filename.size()).c_str());
outpath += fs::path("/");
outpath += fs::path(filename.substr(0, start));
outpath += fs::path(boost::lexical_cast<std::string>(
index + f->m_comm->GetRank() % vm["npt"].as<int>()));
outpath += ftype;
outpath /= filename.substr(0, start) +
std::to_string(index + f->m_comm->GetRank() %
vm["npt"].as<int>()) +
ftype.string();
io = outpath.string();
}
}
......
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