HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
NavierStokes3DCleanup_GPU.c
Go to the documentation of this file.
1 
6 #include <stdlib.h>
8 #include <arrayfunctions_gpu.h>
9 
14 {
15  NavierStokes3D *param = (NavierStokes3D*) s;
16 
17  gpuFree(param->gpu_Q);
18  gpuFree(param->gpu_QDerivX);
19  gpuFree(param->gpu_QDerivY);
20  gpuFree(param->gpu_QDerivZ);
21  gpuFree(param->gpu_FViscous);
22  gpuFree(param->gpu_FDeriv);
23  gpuFree(param->gpu_grav_field_f);
24  gpuFree(param->gpu_grav_field_g);
25  gpuFree(param->gpu_fast_jac);
26  gpuFree(param->gpu_solution);
27 
28  return(0);
29 }
double * gpu_QDerivX
Contains function definitions for common array operations on GPU.
double * gpu_QDerivY
double * gpu_grav_field_f
double * gpu_solution
Structure containing variables and parameters specific to the 3D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 3D Navier-Stokes equations.
3D Navier Stokes equations (compressible flows)
double * gpu_fast_jac
double * gpu_grav_field_g
int gpuNavierStokes3DCleanup(void *s)
double * gpu_FViscous
void gpuFree(void *)
double * gpu_QDerivZ
double * gpu_FDeriv