46 const std::map<std::string, std::string> &pParams) :
49 if (pParams.find(
"OutputFile") == pParams.end())
55 ASSERTL0(!(pParams.find(
"OutputFile")->second.empty()),
56 "Missing parameter 'OutputFile'.");
59 ASSERTL0(pParams.find(
"OutputFrequency") != pParams.end(),
60 "Missing parameter 'OutputFrequency'.");
87 std::stringstream vOutputFilename;
90 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
91 = pFields[0]->GetFieldDefinitions();
92 std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
95 for(
int j = 0; j < pFields.num_elements(); ++j)
97 for(
int i = 0; i < FieldDef.size(); ++i)
100 FieldDef[i]->m_fields.push_back(
m_session->GetVariable(j));
101 pFields[0]->AppendFieldData(FieldDef[i], FieldData[i], pFields[j]->UpdateCoeffs());
104 m_fld->Write(vOutputFilename.str(),FieldDef,FieldData);