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

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

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

Go to the source code of this file.

Functions

int NavierStokes3DCleanup (void *s)
 

Detailed Description

Clean up the 3D Navier Stokes module.

Author
Debojyoti Ghosh

Definition in file NavierStokes3DCleanup.c.

Function Documentation

◆ NavierStokes3DCleanup()

int NavierStokes3DCleanup ( void *  s)

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

Parameters
sObject of type NavierStokes3D

Definition at line 11 of file NavierStokes3DCleanup.c.

12 {
13  NavierStokes3D *param = (NavierStokes3D*) 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 }
Structure containing variables and parameters specific to the 3D Navier Stokes equations. This structure contains the physical parameters, variables, and function pointers specific to the 3D Navier-Stokes equations.
double * grav_field_g
double * grav_field_f