35 const double*
const var,
37 double**
const face_var
45 if (!solver->
flag_ib)
return(0);
47 if ((*face_var) != NULL) {
48 fprintf(stderr,
"Error in IBComputeFacetVar()\n");
49 fprintf(stderr,
" face_var is not NULL on rank %d\n",
57 if (nfacets_local > 0) {
58 (*face_var) = (
double*) calloc (nvars*nfacets_local,
sizeof(
double));
60 for (
int n = 0; n < nfacets_local; n++) {
65 double *v_c = (*face_var) + n*nvars;
70 for (k=0; k<nvars; k++) {
71 v_c[k] += ( alpha[j] * var[nvars*nodes[j]+k] );
double interp_coeffs[_IB_NNODES_]
Structure defining a facet map.
Structure containing variables for immersed boundary implementation.
MPI related function definitions.
int IBComputeFacetVar(void *s, void *m, const double *const var, int nvars, double **const face_var)
int interp_nodes[_IB_NNODES_]
Structure containing all solver-specific variables and functions.
Contains structure definition for hypar.
#define _ArraySetValue_(x, size, value)
Structures and function definitions for immersed boundaries.
Structure of MPI-related variables.
Contains macros and function definitions for common array operations.