Commit 2a78e963 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Merge branch 'fix/VtkToFld' of /opt/gitlab/repositories/nektar

parents 92eff841 a356bf35
......@@ -270,11 +270,6 @@ int main(int argc, char* argv[])
//-----------------------------------------------
// Write solution to file
if (vSession->GetComm()->GetSize() > 1)
{
int rank = vSession->GetComm()->GetRank();
outfile += "." + boost::lexical_cast<string>(rank);
}
std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
= Exp->GetFieldDefinitions();
std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
......@@ -284,7 +279,9 @@ int main(int argc, char* argv[])
FieldDef[i]->m_fields.push_back(outname);
Exp->AppendFieldData(FieldDef[i], FieldData[i]);
}
LibUtilities::Write(outfile, FieldDef, FieldData);
LibUtilities::FieldIO vFld(vSession->GetComm());
vFld.Write(outfile, FieldDef, FieldData);
//-----------------------------------------------
}
catch (...) {
......
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