|
@@ -110,9 +110,13 @@ bool Mesh_Tecplot::Load_Tecp_Ascii(ifstream &infile)
|
|
|
if(variables.find("zone")!=string::npos)break;
|
|
|
scalarName_.push_back(variables);
|
|
|
}
|
|
|
- scalarNumber_ = scalarName_.size()+3;
|
|
|
- //while(!infile.eof()){
|
|
|
- //if(!infile.good())break;
|
|
|
+ for(int i=0;i<3;i++){
|
|
|
+ vector<string>::iterator k = scalarName_.begin();
|
|
|
+ scalarName_.erase(k);
|
|
|
+ }
|
|
|
+ scalarNumber_ = scalarName_.size();
|
|
|
+ while(!infile.eof()){
|
|
|
+ if(!infile.good())break;
|
|
|
infile>>variables;
|
|
|
if(variables.find("t=\"")!=string::npos){
|
|
|
string zoneName_temp;
|
|
@@ -229,7 +233,7 @@ bool Mesh_Tecplot::Load_Tecp_Ascii(ifstream &infile)
|
|
|
}
|
|
|
SaveData_Ascii(numOfPoint,numOfCell,celltype,cell_vec);
|
|
|
}
|
|
|
- //}
|
|
|
+ }
|
|
|
/*
|
|
|
char str[1024];
|
|
|
infile.getline(str,1024);
|