added: use the given extension for multi-vtf(x) output

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1041 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva
2011-06-07 17:56:46 +00:00
committed by Knut Morten Okstad
parent 3e8d8cec1d
commit 7c1400c852

View File

@@ -169,16 +169,15 @@ int main (int argc, char** argv)
<<"\t"<< it->basis << std::endl;
}
}
ProcessList::const_iterator pit = processlist.begin();
for (int j = 1; pit != processlist.end(); ++pit, ++j) {
std::string vtf = vtffile;
if (processlist.size() > 1) {
std::string temp(strtok(vtffile,"."));
std::string temp(vtf.substr(0,vtf.find_last_of('.')));
std::stringstream str;
str <<"-"<< j;
temp.append(str.str());
vtf = temp+".vtf";
vtf = temp+vtf.substr(vtf.find_last_of('.'));;
}
// This is broken with time dependent geometries.