Lines Matching refs:Nc

56   const PetscInt  Nc = uOff[1] - uOff[0];  in f1_u()  local
59 for (c = 0; c < Nc; ++c) { in f1_u()
86 const PetscInt Nc = uOff[1] - uOff[0]; in g3_uu() local
89 for (c = 0; c < Nc; ++c) { in g3_uu()
91 g3[((c * Nc + c) * dim + d) * dim + d] += mu; /* < \nabla v, \nabla u > */ in g3_uu()
92 g3[((c * Nc + d) * dim + d) * dim + c] += mu; /* < \nabla v, {\nabla u}^T > */ in g3_uu()
135 static PetscErrorCode quadratic_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, P… in quadratic_u() argument
140 for (c = 1; c < Nc; ++c) { in quadratic_u()
147 static PetscErrorCode quadratic_p(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, P… in quadratic_p() argument
196 static PetscErrorCode trig_u(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscS… in trig_u() argument
201 for (c = 1; c < Nc; ++c) { in trig_u()
208 static PetscErrorCode trig_p(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscS… in trig_p() argument
328 static PetscErrorCode zero(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscSca… in zero() argument
331 for (c = 0; c < Nc; ++c) u[c] = 0.0; in zero()
334 static PetscErrorCode one(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScal… in one() argument
337 for (c = 0; c < Nc; ++c) u[c] = 1.0; in one()
377 PetscInt dim, Nf = 2, f, Nc[2]; in SetupProblem() local
384 Nc[0] = dim; in SetupProblem()
385 Nc[1] = 1; in SetupProblem()
389 PetscCall(PetscFECreateDefault(PETSC_COMM_SELF, dim, Nc[f], simplex, prefix[f], -1, &fe)); in SetupProblem()