HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LinearADRCleanup.c File Reference

Clean up the linear advection-diffusion-reaction model. More...

#include <stdlib.h>
#include <physicalmodels/linearadr.h>

Go to the source code of this file.

Functions

int LinearADRCleanup (void *s)
 

Detailed Description

Clean up the linear advection-diffusion-reaction model.

Author
Debojyoti Ghosh

Definition in file LinearADRCleanup.c.

Function Documentation

int LinearADRCleanup ( void *  s)

Clean up the linear advection-diffusion-reaction model

Parameters
sSolver object of type HyPar

Definition at line 10 of file LinearADRCleanup.c.

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 }
double * d
Definition: linearadr.h:53
Structure containing variables and parameters specific to the linear advection-diffusion-reaction mod...
Definition: linearadr.h:37
double * a
Definition: linearadr.h:50