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] );
#define _ArraySetValue_(x, size, value)
double interp_coeffs[_IB_NNODES_]
Structure containing variables for immersed boundary implementation.
Structure defining a facet map.
Structures and function definitions for immersed boundaries.
MPI related function definitions.
int IBComputeFacetVar(void *, void *, const double *const, int, double **const)
int interp_nodes[_IB_NNODES_]
Contains structure definition for hypar.
Contains macros and function definitions for common array operations.
Structure of MPI-related variables.
Structure containing all solver-specific variables and functions.