Lines Matching refs:numCells
49 PetscInt dim, cStart, cEnd, numCells, n; in ProcessOptions() local
55 numCells = cEnd - cStart; in ProcessOptions()
56 …tscCall(PetscMalloc4(numCells * dim, &options->v0, numCells * dim * dim, &options->J, numCells * d… in ProcessOptions()
57 PetscCall(PetscMalloc1(numCells * dim, &options->centroid)); in ProcessOptions()
58 PetscCall(PetscMalloc1(numCells * dim, &options->normal)); in ProcessOptions()
59 PetscCall(PetscMalloc1(numCells, &options->vol)); in ProcessOptions()
60 n = numCells * dim; in ProcessOptions()
62 …Flg || n == numCells * dim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of v0 %" PetscInt_FM… in ProcessOptions()
63 n = numCells * dim * dim; in ProcessOptions()
65 …g || n == numCells * dim * dim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of J %" PetscInt… in ProcessOptions()
66 n = numCells * dim * dim; in ProcessOptions()
68 …|| n == numCells * dim * dim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of invJ %" PetscIn… in ProcessOptions()
69 n = numCells; in ProcessOptions()
71 …(!flg || n == numCells, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of detJ %" PetscInt_FMT … in ProcessOptions()
72 n = numCells * dim; in ProcessOptions()
78 … || n == numCells * dim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of centroid %" PetscInt… in ProcessOptions()
83 n = numCells * dim; in ProcessOptions()
85 …g || n == numCells * dim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of normal %" PetscInt_… in ProcessOptions()
90 n = numCells; in ProcessOptions()
92 …k(!flg || n == numCells, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Invalid size of vol %" PetscInt_FMT … in ProcessOptions()