HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
IBCleanup.c
Go to the documentation of this file.
1
6
#include <stdlib.h>
7
#include <
immersedboundaries.h
>
8
11
int
IBCleanup
(
void
*s )
12
{
13
ImmersedBoundary
*ib = (
ImmersedBoundary
*) s;
14
if
(!ib)
return
(0);
15
16
free(ib->
body
->
surface
);
17
free(ib->
body
);
18
19
if
(ib->
n_boundary_nodes
> 0) free(ib->
boundary
);
20
if
(ib->
nfacets_local
> 0) free(ib->
fmap
);
21
22
return
(0);
23
}
ImmersedBoundary::fmap
FacetMap * fmap
Definition:
immersedboundaries.h:156
ImmersedBoundary
Structure containing variables for immersed boundary implementation.
Definition:
immersedboundaries.h:153
immersedboundaries.h
Structures and function definitions for immersed boundaries.
ImmersedBoundary::nfacets_local
int nfacets_local
Definition:
immersedboundaries.h:162
ImmersedBoundary::n_boundary_nodes
int n_boundary_nodes
Definition:
immersedboundaries.h:161
ImmersedBoundary::body
Body3D * body
Definition:
immersedboundaries.h:154
Body3D::surface
Facet3D * surface
Definition:
immersedboundaries.h:102
IBCleanup
int IBCleanup(void *)
Definition:
IBCleanup.c:11
ImmersedBoundary::boundary
IBNode * boundary
Definition:
immersedboundaries.h:155