Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 9 of file ExtractMultiFldFileInfo.cpp.
References Nektar::LibUtilities::Import().
13 fprintf(stderr,
"Usage: ExtractMultiFileInfo file.fld \n" );
22 string fieldfile(argv[argc-1]);
23 vector<LibUtilities::FieldDefinitionsSharedPtr> fielddef;
24 vector<vector<NekDouble> > fielddata;
29 cout <<
"<MultipleFldFiles FileName=\"" << fieldfile <<
"\" >";
31 cout << fielddef[0]->m_elementIDs[0];
33 for(
int f = 0; f < fielddef.size(); ++f)
35 for(
int i = 1; i < fielddef[f]->m_elementIDs.size(); ++i)
37 cout <<
"," <<fielddef[f]->m_elementIDs[i];
40 cout <<
"<\\MultipleFldFiles>" << endl;
void Import(const std::string &infilename, std::vector< FieldDefinitionsSharedPtr > &fielddefs, std::vector< std::vector< NekDouble > > &fielddata, FieldMetaDataMap &fieldinfomap, const Array< OneD, int > ElementiDs)
Imports an FLD file.
Base class for a spectral/hp element mesh.