Skip to content
Snippets Groups Projects
Commit 7dcef320 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix weird GVertex/MVertex association problem

parent dd0818ba
No related branches found
No related tags found
No related merge requests found
......@@ -926,7 +926,7 @@ void GModel::_associateEntityWithMeshVertices()
_associateEntityWithElementVertices(*it, (*it)->lines);
}
for(viter it = firstVertex(); it != lastVertex(); ++it){
(*it)->mesh_vertices[0]->setEntity(*it);
for(unsigned int i = 0; i < (*it)->mesh_vertices.size(); i++)
(*it)->mesh_vertices[i]->setEntity(*it);
}
}
......@@ -216,7 +216,8 @@ int GModel::readMSH(const std::string &name)
int num;
double xyz[3];
if(!binary){
if(fscanf(fp, "%d %lf %lf %lf", &num, &xyz[0], &xyz[1], &xyz[2]) != 4) return 0;
if(fscanf(fp, "%d %lf %lf %lf", &num, &xyz[0], &xyz[1], &xyz[2]) != 4)
return 0;
}
else{
if(fread(&num, sizeof(int), 1, fp) != 1) return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment