Lines Matching refs:nc
29 PetscInt dim, i, nc; in TestEvaluate() local
39 PetscCall(DMFieldGetNumComponents(field, &nc)); in TestEvaluate()
47 …PetscCall(PetscMalloc6(n * nc, &B, n * nc, &rB, n * nc * dim, &D, n * nc * dim, &rD, n * nc * dim … in TestEvaluate()
54 PetscCall(ViewResults(viewer, n * nc, dim, B, D, H, rB, rD, rH)); in TestEvaluate()
64 PetscInt dim, i, nc, nq; in TestEvaluateFE() local
75 PetscCall(DMFieldGetNumComponents(field, &nc)); in TestEvaluateFE()
89 N = n * nq * nc; in TestEvaluateFE()
108 PetscInt dim, i, nc; in TestEvaluateFV() local
119 PetscCall(DMFieldGetNumComponents(field, &nc)); in TestEvaluateFV()
132 N = n * nc; in TestEvaluateFV()
227 PetscInt nc = 1; in main() local
241 …cOptionsBoundedInt("-num_components", "Number of components in field", "ex1.c", nc, &nc, NULL, 1)); in main()
283 PetscCall(VecCreateSeq(PETSC_COMM_SELF, nc, &ctxVec)); in main()
286 for (i = 0; i < nc; i++) array[i] = i + 1.; in main()
288 PetscCall(DMFieldCreateShell(dm, nc, DMFIELD_VERTEX, (void *)ctxVec, &field)); in main()
292 PetscCall(PetscFECreateDefault(PETSC_COMM_SELF, dim, nc, simplex, NULL, PETSC_DEFAULT, &fe)); in main()
327 PetscCall(PetscMalloc1(nc * (1 << dim), &cv)); in main()
328 for (i = 0; i < nc * (1 << dim); i++) { in main()
334 PetscCall(DMFieldCreateDA(dm, nc, cv, &field)); in main()