Debian Codegraph @

profile/prof.cpp

raw symbols SCIP
1 #include "distance_marcher.h"
2 #include "math.h"
3
4 int main(void)
5 {
6 int size = 1500;
7 int dim = 2;
8 double dx[] = { 0.1, 0.1, 0.1 };
9 int shape[3];
10 shape[0]=size;
11 shape[1]=size;
12 shape[2]=size;
13
14 int lsize =pow(size,dim);
15 double *phi = new double[lsize];
16 double *distance = new double[lsize];
17 long *flag = new long[lsize];
18
19 for (int i=0; i<lsize; i++)
20 {
21 phi[i]=1.0;
22 distance[i]=0.0;
23 flag[i]=0;
24 }
25 phi[0]=-1;
26
27 distanceMarcher *fm = new distanceMarcher(
28 phi, dx, flag, distance, 2, shape, false, 2);
29 fm->march();
30
31 delete [] phi;
32 delete [] distance;
33 delete [] flag;
34 delete fm;
35 fm = 0;
36 flag = 0;
37 phi = distance = 0;
38
39
40 return 0;
41 }
42