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

Clean up immersed boundaries-related allocations. More...

#include <stdlib.h>
#include <immersedboundaries.h>

Go to the source code of this file.

Functions

int IBCleanup (void *s)
 

Detailed Description

Clean up immersed boundaries-related allocations.

Author
Debojyoti Ghosh

Definition in file IBCleanup.c.

Function Documentation

◆ IBCleanup()

int IBCleanup ( void *  s)
Parameters
sObject of type ImmersedBoundary

Definition at line 11 of file IBCleanup.c.

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.
Facet3D * surface