HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
Euler1DCleanup.c File Reference

Contains the function to clean up the 1D Euler physics module. More...

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

Go to the source code of this file.

Functions

int Euler1DCleanup (void *s)
 

Detailed Description

Contains the function to clean up the 1D Euler physics module.

Author
Debojyoti Ghosh

Definition in file Euler1DCleanup.c.

Function Documentation

◆ Euler1DCleanup()

int Euler1DCleanup ( void *  s)

Function to clean up all physics-related allocations for the 1D Euler equations

Parameters
sSolver object of type HyPar

Definition at line 10 of file Euler1DCleanup.c.

13 {
14  Euler1D *param = (Euler1D*) s;
15  free(param->grav_field);
16  free(param->fast_jac);
17  free(param->solution);
18  return(0);
19 }
Structure containing variables and parameters specific to the 1D Euler equations. This structure cont...
Definition: euler1d.h:273
double * fast_jac
Definition: euler1d.h:289
double * solution
Definition: euler1d.h:290
double * grav_field
Definition: euler1d.h:288