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

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

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

Go to the source code of this file.

Functions

int ShallowWater1DCleanup (void *s)
 

Detailed Description

Contains the function to clean up the 1D shallow water physics module.

Author
Debojyoti Ghosh

Definition in file ShallowWater1DCleanup.c.

Function Documentation

◆ ShallowWater1DCleanup()

int ShallowWater1DCleanup ( void *  s)

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

Parameters
sSolver object of type HyPar

Definition at line 10 of file ShallowWater1DCleanup.c.

13 {
14  ShallowWater1D *param = (ShallowWater1D*) s;
15  free(param->b);
16  return(0);
17 }
Structure containing variables and parameters specific to the 1D Shallow Water equations. This structure contains the physical parameters, variables, and function pointers specific to the 1D ShallowWater equations.