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

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

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

Go to the source code of this file.

Functions

int ShallowWater2DCleanup (void *s)
 

Detailed Description

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

Author
Debojyoti Ghosh

Definition in file ShallowWater2DCleanup.c.

Function Documentation

◆ ShallowWater2DCleanup()

int ShallowWater2DCleanup ( void *  s)

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

Parameters
sSolver object of type HyPar

Definition at line 10 of file ShallowWater2DCleanup.c.

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