18 int init_ppm(
double **rho_1D,
double **pre_1D,
double **eng_1D,
double **vx_1D,
double **vy_1D,
19 double **vz_1D,
double **marker_1D,
double **dx0,
double **xa0,
double **xa,
double **dx,
double **a_coef,
20 double **ai_coef,
double **b_coef,
double **bi_coef,
double **c_coef,
double **ci_coef,
21 double **d_x,
double **da,
double **ar,
double **dp,
double **dr,
double **du,
22 double **pl,
double **p6,
double **rl,
double **r6,
double **ul,
double **u6,
23 double **vl,
double **v6,
double **wl,
double **w6,
double **el,
double **e6,
24 double **ql,
double **q6,
double **deltaa,
double **dv,
double **dw,
double **dq,
25 double **de,
double **scratch1,
double **scratch2,
double **scratch3,
double **diffa,
26 double **plft,
double **prgh,
double **ulft,
double **urgh,
double **rlft,
double **rrgh,
27 double **Cdtdx,
double **fCdtdx,
double **clft,
double **crgh,
double **plfti,
double **prghi,
28 double **pmid,
double **pmold,
double **wlft,
double **wrgh,
double **zlft,
double **zrgh,
29 double **umidl,
double **umidr,
double **umid,
double **dm,
double **dtbdm,
double **upmid,
30 double **xa1,
double **xa2,
double **xa3,
double **vx_1D_old,
double **e_int_1D,
double **dvol,
31 double **dvol0,
double **dvol1,
double **delta,
double **fluxr,
double **fluxu,
double **fluxv,
32 double **fluxw,
double **fluxe,
double **fluxq,
double **dm0,
double **steep,
double **flat,
33 double ***para,
double **pressure_solid_1D,
double **rhodown,
double **rhoup,
double **rhofront,
34 double **rhoback,
double **vxdown,
double **vxup,
double **vxfront,
double **vxback,
double **vydown,
35 double **vyup,
double **vyfront,
double **vyback,
double **vzdown,
double **vzup,
double **vzfront,
49 *pressure_solid_1D = calloc((
max_array_length + 12),
sizeof ** pressure_solid_1D);
165 *((*para) + i) = calloc(5,
sizeof ***para);
174 int ppm_free(
double **rho_1D,
double **pre_1D,
double **eng_1D,
double **vx_1D,
double **vy_1D,
175 double **vz_1D,
double **marker_1D,
double **pressure_solid_1D,
176 double **dx0,
double **xa0,
double **xa,
double **dx,
double **a_coef,
177 double **ai_coef,
double **b_coef,
double **bi_coef,
double **c_coef,
double **ci_coef,
178 double **d_x,
double **da,
double **ar,
double **dp,
double **dr,
double **du,
179 double **pl,
double **p6,
double **rl,
double **r6,
double **ul,
double **u6,
180 double **vl,
double **v6,
double **wl,
double **w6,
double **el,
double **e6,
181 double **ql,
double **q6,
double **deltaa,
double **dv,
double **dw,
double **dq,
182 double **de,
double **scratch1,
double **scratch2,
double **scratch3,
double **diffa,
183 double **plft,
double **prgh,
double **ulft,
double **urgh,
double **rlft,
double **rrgh,
184 double **Cdtdx,
double **fCdtdx,
double **clft,
double **crgh,
double **plfti,
double **prghi,
185 double **pmid,
double **pmold,
double **wlft,
double **wrgh,
double **zlft,
double **zrgh,
186 double **umidl,
double **umidr,
double **umid,
double **dm,
double **dtbdm,
double **upmid,
187 double **xa1,
double **xa2,
double **xa3,
double **vx_1D_old,
double **e_int_1D,
double **dvol,
188 double **dvol0,
double **dvol1,
double **delta,
double **fluxr,
double **fluxu,
double **fluxv,
189 double **fluxw,
double **fluxe,
double **fluxq,
double **dm0,
double **steep,
double **flat,
190 double ***para,
double **rhodown,
double **rhoup,
double **rhofront,
191 double **rhoback,
double **vxdown,
double **vxup,
double **vxfront,
double **vxback,
double **vydown,
192 double **vyup,
double **vyfront,
double **vyback,
double **vzdown,
double **vzup,
double **vzfront,
205 free(*pressure_solid_1D);
319 free(*((*para) + i));
326 int init_diffusion(
double **temperature_1D,
double **temperature_1D_future,
double **mass,
int **dom_1D) {
329 *temperature_1D_future = calloc((
max_array_length + 4),
sizeof **temperature_1D_future);
336 int free_diffusion(
double **temperature_1D,
double **temperature_1D_future,
double **mass,
int **dom_1D) {
338 free(*temperature_1D);
339 free(*temperature_1D_future);
346 int init_viscosity(
double **viscosity_array,
double **vx_flux,
double **vy_flux,
double **vz_flux,
int **dom_1D) {
348 *viscosity_array = calloc((
max_array_length + 2),
sizeof **viscosity_array);
358 int free_viscosity(
double **viscosity_array,
double **vx_flux,
double **vy_flux,
double **vz_flux,
int **dom_1D) {
360 free(*viscosity_array);