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

test THEM for NULL

parent 6bca969e
No related branches found
No related tags found
No related merge requests found
// $Id: Generator.cpp,v 1.28 2001-10-29 08:52:20 geuzaine Exp $ // $Id: Generator.cpp,v 1.29 2001-11-07 08:36:52 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Numeric.h" #include "Numeric.h"
...@@ -14,6 +14,7 @@ static List_T *Curves; ...@@ -14,6 +14,7 @@ static List_T *Curves;
void GetStatistics (double s[50]){ void GetStatistics (double s[50]){
int i; int i;
if(!THEM) return;
THEM->Statistics[0] = Tree_Nbr (THEM->Points); THEM->Statistics[0] = Tree_Nbr (THEM->Points);
THEM->Statistics[1] = Tree_Nbr (THEM->Curves); THEM->Statistics[1] = Tree_Nbr (THEM->Curves);
THEM->Statistics[2] = Tree_Nbr (THEM->Surfaces); THEM->Statistics[2] = Tree_Nbr (THEM->Surfaces);
......
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