34 #if defined(HAVE_CUDA) 47 if (nsims == 0)
return 0;
49 if (!sim[0].mpi.rank) {
50 printf(
"Deallocating arrays.\n");
53 for (ns = 0; ns < nsims; ns++) {
55 if (sim[ns].is_barebones == 1) {
56 fprintf(stderr,
"Error in Cleanup(): object is barebones type.\n");
67 #if defined(HAVE_CUDA) 100 #if defined(HAVE_CUDA) 143 #if defined(HAVE_CUDA) 168 if (solver->
u0) free(solver->
u0);
169 if (solver->
uref) free(solver->
uref);
171 if (solver->
rhs) free(solver->
rhs);
194 #if defined(HAVE_CUDA) 233 #if defined(HAVE_CUDA)
int WENOCleanup(void *, int)
#define _FP_POWER_SYSTEM_3BUS_
#define _FIFTH_ORDER_WENO_
#define _LINEAR_ADVECTION_DIFFUSION_REACTION_
int Numa3DCleanup(void *)
#define _FIFTH_ORDER_HCWENO_
int LinearADRCleanup(void *)
double * StageBoundaryBuffer
int NavierStokes2DCleanup(void *)
Containts the structures and definitions for boundary condition implementation.
1D Shallow Water Equations
MPI related function definitions.
Contains function definitions for common array operations on GPU.
int NavierStokes3DCleanup(void *)
Structure defining a simulation.
Header file for TridiagLU.
#define _NAVIER_STOKES_2D_
Data structure and some function declarations for banded block matrices.
int BCCleanup(void *, int)
int VlasovCleanup(void *)
int Euler2DCleanup(void *)
Some basic definitions and macros.
Contains function declarations for time integration.
double * ConservationError
int ShallowWater1DCleanup(void *)
int TimeExplicitRKCleanup(void *)
2D Shallow Water Equations
Structure containing the variables and function pointers defining a boundary.
3D Navier Stokes equations (compressible flows)
int FPPowerSystem1BusCleanup(void *)
int Cleanup(void *s, int nsims)
int gpuNavierStokes3DCleanup(void *)
#define _FP_POWER_SYSTEM_1BUS_
int FPPowerSystemCleanup(void *)
int ShallowWater2DCleanup(void *)
#define _FP_POWER_SYSTEM_
Structure containing all solver-specific variables and functions.
int * stride_without_ghosts
int Numa2DCleanup(void *)
char spatial_scheme_hyp[_MAX_STRING_SIZE_]
#define _SHALLOW_WATER_1D_
int MPIFreeCommunicators(int, void *)
int Euler1DCleanup(void *)
char time_scheme[_MAX_STRING_SIZE_]
#define _SHALLOW_WATER_2D_
2D Navier Stokes equations (compressible flows)
int TimeGLMGEECleanup(void *)
Linear Advection-Diffusion-Reaction model.
int CompactSchemeCleanup(void *)
double * StageBoundaryIntegral
char model[_MAX_STRING_SIZE_]
#define _FIFTH_ORDER_CRWENO_
double * TotalBoundaryIntegral
Structures and function definitions for immersed boundaries.
1D Euler Equations (inviscid, compressible flows)
Fokker-Planck Model for 1-Bus Power System.
double * StepBoundaryIntegral
#define _FIFTH_ORDER_COMPACT_UPWIND_
Structure of MPI-related variables.
int FPDoubleWellCleanup(void *)
Definitions for the functions computing the interpolated value of the primitive at the cell interface...
#define _NAVIER_STOKES_3D_
int FPPowerSystem3BusCleanup(void *)
double * VolumeIntegralInitial