|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Assemble a local array with some facet var to a global one. More...
#include <stdio.h>#include <stdlib.h>#include <arrayfunctions.h>#include <immersedboundaries.h>#include <mpivars.h>Go to the source code of this file.
Functions | |
| int | IBAssembleGlobalFacetData (void *m, void *ib, const double *const local_var, double **const global_var, int nvars) |
Assemble a local array with some facet var to a global one.
Definition in file IBAssembleGlobalFacetData.c.
| int IBAssembleGlobalFacetData | ( | void * | m, |
| void * | ib, | ||
| const double *const | local_var, | ||
| double **const | global_var, | ||
| int | nvars | ||
| ) |
Assemble any local data computed at immersed body surface (facet centroids) into a global array.
The local array must be of length (ImmersedBoundary::nfacets_local X nvars).
The global array must be NULL at input; it will have the size (Body3D::nfacets X nvars) at output on rank 0; it will remain NULL on other ranks.
| m | MPI object of type MPIVariables |
| ib | Immersed boundary object of type ImmersedBoundary |
| local_var | Local array |
| global_var | Array to store the gradient; must be NULL at input |
| nvars | Number of components in var |
Definition at line 22 of file IBAssembleGlobalFacetData.c.