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

Clean up the 2D Navier Stokes module. More...

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

Go to the source code of this file.

Functions

int NavierStokes2DCleanup (void *s)
 

Detailed Description

Clean up the 2D Navier Stokes module.

Author
Debojyoti Ghosh

Definition in file NavierStokes2DCleanup.c.

Function Documentation

int NavierStokes2DCleanup ( void *  s)

Function to clean up all allocations in the 2D Navier Stokes module.

Parameters
sObject of type NavierStokes2D

Definition at line 11 of file NavierStokes2DCleanup.c.

12 {
13  NavierStokes2D *param = (NavierStokes2D*) s;
14 
15  free(param->grav_field_f);
16  free(param->grav_field_g);
17  free(param->fast_jac);
18  free(param->solution);
19  return(0);
20 }
double * grav_field_f
double * grav_field_g
Structure containing variables and parameters specific to the 2D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 2D Navier-Stokes equations.