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

Oups, fix seg fault for Physical points

parent cdcea40c
No related branches found
No related tags found
No related merge requests found
// $Id: Print_Mesh.cpp,v 1.30 2001-09-06 07:12:16 geuzaine Exp $ // $Id: Print_Mesh.cpp,v 1.31 2001-10-06 09:21:04 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Numeric.h" #include "Numeric.h"
...@@ -50,7 +50,7 @@ void print_msh_node (void *a, void *b){ ...@@ -50,7 +50,7 @@ void print_msh_node (void *a, void *b){
void process_msh_nodes (Mesh * M){ void process_msh_nodes (Mesh * M){
int i, j, Num; int i, j, Num;
PhysicalGroup *p; PhysicalGroup *p;
Vertex *pv, *ppv, v; Vertex *pv, **ppv, v;
for (i = 0; i < List_Nbr (M->PhysicalGroups); i++){ for (i = 0; i < List_Nbr (M->PhysicalGroups); i++){
List_Read (M->PhysicalGroups, i, &p); List_Read (M->PhysicalGroups, i, &p);
...@@ -60,8 +60,8 @@ void process_msh_nodes (Mesh * M){ ...@@ -60,8 +60,8 @@ void process_msh_nodes (Mesh * M){
pv = &v; pv = &v;
pv->Num = abs(Num); pv->Num = abs(Num);
if(!Tree_Search(M->Vertices, &pv)){ if(!Tree_Search(M->Vertices, &pv)){
if((ppv = *(Vertex**)Tree_PQuery(M->Points, &pv))) if((ppv = (Vertex**)Tree_PQuery(M->Points, &pv)))
Tree_Add(M->Vertices, &ppv); Tree_Add(M->Vertices, ppv);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment