Lines Matching refs:Nc
14 const PetscInt Nc = uOff[1] - uOff[0]; in constant() local
15 for (PetscInt c = 0; c < Nc; ++c) f0[c] += 5.; in constant()
20 const PetscInt Nc = uOff[1] - uOff[0]; in linear() local
21 for (PetscInt c = 0; c < Nc; ++c) f0[c] += 5. * x[c]; in linear()
26 const PetscInt Nc = uOff[1] - uOff[0]; in quadratic() local
27 for (PetscInt c = 0; c < Nc; ++c) f0[c] += 5. * x[c] * x[c]; in quadratic()
32 const PetscInt Nc = uOff[1] - uOff[0]; in trig() local
33 for (PetscInt c = 0; c < Nc; ++c) f0[c] += PetscCosReal(2. * PETSC_PI * x[c]); in trig()
85 static PetscErrorCode exactSolution(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc,… in exactSolution() argument
88 PetscInt uOff[2] = {0, Nc}; in exactSolution()
91 for (PetscInt c = 0; c < Nc; ++c) u[c] *= -1.; in exactSolution()
97 const PetscInt Nc = uOff[1] - uOff[0]; in f0() local
98 for (PetscInt c = 0; c < Nc; ++c) f0[c] += u[c]; in f0()
103 const PetscInt Nc = uOff[1] - uOff[0]; in g0() local
104 for (PetscInt c = 0; c < Nc; ++c) g0[c * Nc + c] = 1.0; in g0()