HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 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 {
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 }
Structure containing variables for immersed boundary implementation.
Structures and function definitions for immersed boundaries.
Facet3D * surface
int IBCleanup(void *)
Definition: IBCleanup.c:11