Download this file
70 lines (65 with data), 1.3 kB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69 | /*
* This file contains the settings for most of the
* global variables by way of including nnmhead.h .
*/
#include "nnmhead.h"
#include "nnghead.h"
#include "nntypes.h"
#include "nntpvrs.h"
#include "nnexver.h"
void Terminate()
{
struct simp *tmp,*tmp0;
struct datum *dtmp,*dtmp0;
struct neig *ntmp,*ntmp0;
struct temp *ttmp,*ttmp0;
tmp = rootsimp;
while(tmp!=NULL) {
tmp0 =tmp->nextsimp;
free(tmp);
tmp = tmp0;
}
rootsimp = cursimp = holdsimp = lastsimp = prevsimp = NULL;
dtmp = rootdat;
while(dtmp!=NULL) {
dtmp0 =dtmp->nextdat;
free(dtmp);
dtmp = dtmp0;
}
rootdat = curdat = holddat = NULL;
ntmp = rootneig;
while(ntmp!=NULL) {
ntmp0 =ntmp->nextneig;
free(ntmp);
ntmp = ntmp0;
}
rootneig = curneig = lastneig = NULL;
ttmp = roottemp;
while(ttmp!=NULL) {
ttmp0 =ttmp->nexttemp;
free(ttmp);
ttmp = ttmp0;
}
roottemp = curtemp = lasttemp= prevtemp= NULL;
if(points!=NULL) {
FreeMatrixd(points);
points = NULL;
}
if(joints!=NULL) {
FreeMatrixd(joints);
joints = NULL;
}
if(jndx != NULL) {
FreeVecti(jndx);
jndx = NULL;
}
if(wts != NULL) {
free(wts);
}
if(nbrs != NULL) {
free(nbrs);
}
magx = magx_orig;
magy = magy_orig;
magz = magz_orig;
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.