HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
LinearADRCleanup.c
Go to the documentation of this file.
1
6
#include <stdlib.h>
7
#include <
physicalmodels/linearadr.h
>
8
10
int
LinearADRCleanup
(
void
*s )
11
{
12
LinearADR
*physics = (
LinearADR
*) s;
13
if
(physics->
a
) free(physics->
a
);
14
if
(physics->
d
) free(physics->
d
);
15
16
return
(0);
17
}
LinearADR
Structure containing variables and parameters specific to the linear advection-diffusion-reaction mod...
Definition:
linearadr.h:37
LinearADR::a
double * a
Definition:
linearadr.h:50
LinearADRCleanup
int LinearADRCleanup(void *s)
Definition:
LinearADRCleanup.c:10
linearadr.h
Linear Advection-Diffusion-Reaction model.
LinearADR::d
double * d
Definition:
linearadr.h:53