HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
CompactSchemeCleanup.c
Go to the documentation of this file.
1 
6 #include <stdlib.h>
7 #include <interpolation.h>
8 #include <mpivars.h>
9 #include <hypar.h>
10 
14 int CompactSchemeCleanup(void *s )
15 {
16  CompactScheme *compact = (CompactScheme*) s;
17 
18  if (compact->A) free(compact->A);
19  if (compact->B) free(compact->B);
20  if (compact->C) free(compact->C);
21  if (compact->R) free(compact->R);
22 
23  if (compact->sendbuf) free(compact->sendbuf);
24  if (compact->recvbuf) free(compact->recvbuf);
25 
26  return(0);
27 }
MPI related function definitions.
Contains structure definition for hypar.
double * recvbuf
Structure of variables/parameters needed by the compact schemes.
Definitions for the functions computing the interpolated value of the primitive at the cell interface...
double * sendbuf
int CompactSchemeCleanup(void *s)