50 ModuleKey ProcessConcatenateFld::className =
53 ProcessConcatenateFld::create,
54 "Concatenate field file into single file");
60 if((f->m_inputfiles.count(
"xml") == 0) &&
61 (f->m_inputfiles.count(
"xml.gz") == 0))
63 cout <<
"An xml or xml.gz input file must be specified for the "
64 "concatenate module" << endl;
68 if((f->m_inputfiles.count(
"fld") == 0) &&
69 (f->m_inputfiles.count(
"chk") == 0) &&
70 (f->m_inputfiles.count(
"rst") == 0))
72 cout <<
"A fld or chk or rst input file must be specified for the "
73 "concatenate module" << endl;
88 cout <<
"ProcessConcatenateFld: Concatenating field file" << endl;
91 std::vector<LibUtilities::FieldDefinitionsSharedPtr> FieldDef
92 =
m_f->m_exp[0]->GetFieldDefinitions();
93 std::vector<std::vector<NekDouble> > FieldData(FieldDef.size());
96 for(
int j = 0; j <
m_f->m_exp.size(); ++j)
98 for(
int i = 0; i < FieldDef.size(); ++i)
101 FieldDef[i]->m_fields.push_back(
m_f->m_fielddef[0]->m_fields[j]);
102 m_f->m_exp[0]->AppendFieldData(FieldDef[i], FieldData[i],
103 m_f->m_exp[j]->UpdateCoeffs());
107 m_f->m_fielddef = FieldDef;
108 m_f->m_data = FieldData;