Revision: | 5 |
Committed: | Tue Jun 12 20:26:34 2007 UTC (17 years, 11 months ago) |
Original Path: | magic/lib/diamesh/diamesh/src/r3d_init.cpp |
File size: | 567 byte(s) |
Log Message: |
# | 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 | void r3d_init(void) | ||
9 | { | ||
10 | gest_r = (GEST_MEM *)calloc(1,sizeof(struct st_gest_mem)) ; | ||
11 | |||
12 | /* initialisations */ | ||
13 | gest_r->nb_init = 0 ; | ||
14 | gest_r->nb_2d = 0 ; | ||
15 | gest_r->tabele = NULL ; | ||
16 | gest_r->front = NULL ; | ||
17 | gest_r->coord = NULL ; | ||
18 | gest_r->numele = NULL ; | ||
19 | gest_r->corresp = NULL ; | ||
20 | /* structures */ | ||
21 | INIT_ALLOC(noeud) | ||
22 | INIT_ALLOC(face) | ||
23 | INIT_ALLOC(tetra) | ||
24 | INIT_ALLOC(connec) | ||
25 | return ; | ||
26 | } |