HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
TimeExplicitRKCleanup.c
Go to the documentation of this file.
1
6
#include <stdlib.h>
7
#include <string.h>
8
#include <
timeintegration.h
>
9
12
int
TimeExplicitRKCleanup
(
void
*s )
13
{
14
ExplicitRKParameters
*params = (
ExplicitRKParameters
*) s;
15
if
(params->
A
) free(params->
A
);
16
if
(params->
b
) free(params->
b
);
17
if
(params->
c
) free(params->
c
);
18
return
(0);
19
}
timeintegration.h
Contains function declarations for time integration.
ExplicitRKParameters::b
double * b
Definition:
timeintegration_struct.h:180
TimeExplicitRKCleanup
int TimeExplicitRKCleanup(void *s)
Definition:
TimeExplicitRKCleanup.c:12
ExplicitRKParameters::c
double * c
Definition:
timeintegration_struct.h:180
ExplicitRKParameters
Structure containing the parameters for an explicit Runge-Kutta method.
Definition:
timeintegration_struct.h:177
ExplicitRKParameters::A
double * A
Definition:
timeintegration_struct.h:180