Go to the documentation of this file.
24 rho = calloc(x,
sizeof *
rho);
26 for (i = 0; i <
x; i++) {
27 rho[i] = calloc(y,
sizeof **
rho);
28 for (j = 0; j <
y; j++) {
29 rho[i][j] = calloc(z,
sizeof ***
rho);
33 printf(
"Density array memory allocated\n");
36 pre = calloc(x,
sizeof *
pre);
38 for (i = 0; i <
x; i++) {
39 pre[i] = calloc(y,
sizeof **
pre);
40 for (j = 0; j <
y; j++) {
41 pre[i][j] = calloc(z,
sizeof ***
pre);
45 printf(
"Pressure array memory allocated\n");
48 dom = calloc(x,
sizeof *
dom);
50 for (i = 0; i <
x; i++) {
51 dom[i] = calloc(y,
sizeof **
dom);
52 for (j = 0; j <
y; j++) {
53 dom[i][j] = calloc(z,
sizeof ***
dom);
60 for (i = 0; i <
x; i++) {
62 for (j = 0; j <
y; j++) {
68 printf(
"Domain array and pressure on solid memory allocated\n");
71 eng = calloc(x,
sizeof *
eng);
73 for (i = 0; i <
x; i++) {
74 eng[i] = calloc(y,
sizeof **
eng);
75 for (j = 0; j <
y; j++) {
76 eng[i][j] = calloc(z,
sizeof ***
eng);
82 for (i = 0; i <
x; i++) {
84 for (j = 0; j <
y; j++) {
85 e_in[i][j] = calloc(z,
sizeof ***
e_in);
89 printf(
"Energy and Temperature array memory allocated\n");
92 vx = calloc(x,
sizeof *
vx);
94 for (i = 0; i <
x; i++) {
95 vx[i] = calloc(y,
sizeof **
vx);
96 for (j = 0; j <
y; j++) {
97 vx[i][j] = calloc(z,
sizeof ***
vx);
101 vy = calloc(x,
sizeof *
vy);
103 for (i = 0; i <
x; i++) {
104 vy[i] = calloc(y,
sizeof **
vy);
105 for (j = 0; j <
y; j++) {
106 vy[i][j] = calloc(z,
sizeof ***
vy);
110 vz = calloc(x,
sizeof *
vz);
112 for (i = 0; i <
x; i++) {
113 vz[i] = calloc(y,
sizeof **
vz);
114 for (j = 0; j <
y; j++) {
115 vz[i][j] = calloc(z,
sizeof ***
vz);
119 printf(
"Velocities array memory allocated\n");
125 for (i = 0; i <
x; i++) {
127 for (j = 0; j <
y; j++) {
132 printf(
"Marker array memory allocated\n");
139 for (i = 0; i <
x; i++) {
141 for (j = 0; j <
y; j++) {
146 printf(
"Wind_marker array memory allocated\n");
156 for (i = 0; i <
x; i++) {
158 for (j = 0; j <
y; j++) {
166 for (i = 0; i <
x; i++) {
168 for (j = 0; j <
y; j++) {
175 for (i = 0; i <
x; i++) {
177 for (j = 0; j <
y; j++) {
184 for (i = 0; i <
x; i++) {
186 for (j = 0; j <
y; j++) {
191 printf(
"viscosity arrays are allocated\n");
197 for (i = 0; i <
x; i++) {
199 for (j = 0; j <
y; j++) {
206 for (i = 0; i <
x; i++) {
208 for (j = 0; j <
y; j++) {
216 for (i = 0; i <
x; i++) {
218 for (j = 0; j <
y; j++) {
226 for (i = 0; i <
x; i++) {
228 for (j = 0; j <
y; j++) {
233 printf(
"dB-Map allocated\n");
235 printf(
"Soundemitter, pressure old array, pressure integrated and dB-Map memory allocated\n");
239 zxa = calloc(x,
sizeof *
zxa);
240 zxc = calloc(x,
sizeof *
zxc);
241 zdx = calloc(x,
sizeof *
zdx);
243 zya = calloc(y,
sizeof *
zya);
244 zyc = calloc(y,
sizeof *
zyc);
245 zdy = calloc(y,
sizeof *
zdy);
247 zza = calloc(z,
sizeof *
zza);
248 zzc = calloc(z,
sizeof *
zzc);
249 zdz = calloc(z,
sizeof *
zdz);