ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/diamesh/src/r3d_lib.cpp
Revision: 5
Committed: Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago)
Original Path: magic/lib/diamesh/diamesh/src/r3d_lib.cpp
File size: 549 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 #include <stdio.h>
2     #include <stdlib.h>
3     #include "r3d_struct.h"
4     #include "m3d_const.h"
5     #include "m3d_hotes.h"
6     #include "prototype2.h"
7     extern GEST_MEM *gest_r ;
8     extern int debug ;
9     void r3d_lib(void)
10     {
11     if (gest_r->numele !=NULL) free(gest_r->numele) ;
12     if (gest_r->coord !=NULL) free(gest_r->coord) ;
13     if (gest_r->corresp !=NULL) free(gest_r->corresp) ;
14     if (gest_r->tabele !=NULL) free(gest_r->tabele) ;
15    
16     FREE_ALLOC(noeud)
17     FREE_ALLOC(face)
18     FREE_ALLOC(tetra)
19     FREE_ALLOC(connec)
20     free(gest_r) ;
21     gest_r = NULL ;
22     return ;
23     }