44 int main(
int argc,
char *argv[])
51 fprintf(stderr,
"Usage: ./ExtractCriticalLayer meshfile fieldfile \n");
58 = LibUtilities::SessionReader::CreateInstance(argc, argv);
76 string fieldfile(argv[argc-1]);
77 vector<LibUtilities::FieldDefinitionsSharedPtr> fielddef;
78 vector<vector<NekDouble> > fielddata;
84 string streak_field(
"w");
85 for(
unsigned int i = 0; i < fielddata.size(); ++i)
87 streak->ExtractDataToCoeffs(fielddef [i],
90 streak->UpdateCoeffs());
95 vSession->LoadParameter(
"NumCriticalLayerPts",npts,30);
100 vSession->LoadParameter(
"WidthOfLayers",trans,0.1);
104 cout <<
"# x_c y_c" << endl;
105 for(i = 0; i <
npts; ++i)
107 fprintf(stdout,
"%12.10lf %12.10lf \n",x_c[i],y_c[i]);
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
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.
boost::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr