HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
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
Structure containing variables for immersed boundary implementation.
Definition:
immersedboundaries.h:153
ImmersedBoundary::fmap
FacetMap * fmap
Definition:
immersedboundaries.h:156
Body3D::surface
Facet3D * surface
Definition:
immersedboundaries.h:102
ImmersedBoundary::n_boundary_nodes
int n_boundary_nodes
Definition:
immersedboundaries.h:161
ImmersedBoundary::nfacets_local
int nfacets_local
Definition:
immersedboundaries.h:162
immersedboundaries.h
Structures and function definitions for immersed boundaries.
IBCleanup
int IBCleanup(void *s)
Definition:
IBCleanup.c:11
ImmersedBoundary::boundary
IBNode * boundary
Definition:
immersedboundaries.h:155
ImmersedBoundary::body
Body3D * body
Definition:
immersedboundaries.h:154