Searched refs:nc_max (Results 1 – 1 of 1) sorted by relevance
36 PetscInt n_stencil_unique, dim, count, nidx, nc_max; in DMStagCreateISFromStencils() local47 nc_max = 1; // maximum number of components to represent these stencils in DMStagCreateISFromStencils()49 for (PetscInt p = 0; p < n_stencil; ++p) nc_max = PetscMax(nc_max, stencils[p].c + 1); in DMStagCreateISFromStencils()50 PetscCall(PetscCalloc1(DMSTAG_NUMBER_LOCATIONS * nc_max, &stencil_active)); in DMStagCreateISFromStencils()56 slot = nc_max * ((PetscInt)loc_canonical) + stencils[p].c; in DMStagCreateISFromStencils()67 for (PetscInt c = 0; c < nc_max; ++c) { in DMStagCreateISFromStencils()68 if (stencil_active[nc_max * i + c] != 0) { in DMStagCreateISFromStencils()