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>
7
#include <
physicalmodels/navierstokes3d.h
>
8
#include <
arrayfunctions_gpu.h
>
9
13
int
gpuNavierStokes3DCleanup
(
void
*s )
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
}
NavierStokes3D::gpu_QDerivX
double * gpu_QDerivX
Definition:
navierstokes3d.h:540
arrayfunctions_gpu.h
Contains function definitions for common array operations on GPU.
NavierStokes3D::gpu_QDerivY
double * gpu_QDerivY
Definition:
navierstokes3d.h:541
NavierStokes3D::gpu_grav_field_f
double * gpu_grav_field_f
Definition:
navierstokes3d.h:545
NavierStokes3D::gpu_solution
double * gpu_solution
Definition:
navierstokes3d.h:548
NavierStokes3D
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.
Definition:
navierstokes3d.h:482
navierstokes3d.h
3D Navier Stokes equations (compressible flows)
NavierStokes3D::gpu_Q
double * gpu_Q
Definition:
navierstokes3d.h:539
NavierStokes3D::gpu_fast_jac
double * gpu_fast_jac
Definition:
navierstokes3d.h:547
NavierStokes3D::gpu_grav_field_g
double * gpu_grav_field_g
Definition:
navierstokes3d.h:546
gpuNavierStokes3DCleanup
int gpuNavierStokes3DCleanup(void *s)
Definition:
NavierStokes3DCleanup_GPU.c:13
NavierStokes3D::gpu_FViscous
double * gpu_FViscous
Definition:
navierstokes3d.h:543
gpuFree
void gpuFree(void *)
NavierStokes3D::gpu_QDerivZ
double * gpu_QDerivZ
Definition:
navierstokes3d.h:542
NavierStokes3D::gpu_FDeriv
double * gpu_FDeriv
Definition:
navierstokes3d.h:544