Lines Matching refs:coords
9 PetscReal diff = 0.0, *coords = (PetscReal *)(ctx); in GenEntries() local
15 … (d = 0; d < sdim; d++) diff += (coords[J[j] * sdim + d] - coords[K[k] * sdim + d]) * (coords[J[j]… in GenEntries()
23 PetscReal *coords; member in MyIMatrix
27 …MyIMatrix(PetscInt spacedim, PetscReal *gcoords) : htool::VirtualGenerator<PetscScalar>(), coords(… in MyIMatrix()
37 …t d = 0; d < sdim; d++) diff += (coords[J[j] * sdim + d] - coords[K[k] * sdim + d]) * (coords[J[j]… in copy_submatrix()
49 PetscReal *coords, *gcoords, norm, epsilon, relative; in main() local
64 PetscCall(PetscMalloc1(m * dim, &coords)); in main()
66 PetscCall(PetscRandomGetValuesReal(rdm, m * dim, coords)); in main()
69 PetscCall(PetscArraycpy(gcoords + begin * dim, coords, m * dim)); in main()
72 …PetscCall(MatCreateHtoolFromKernel(PETSC_COMM_WORLD, m, m, M, M, dim, coords, coords, NULL, imatri… in main()
78 …PetscCall(MatCreateHtoolFromKernel(PETSC_COMM_WORLD, m, m, M, M, dim, coords, coords, kernel, gcoo… in main()
98 PetscCall(PetscFree(coords)); in main()