Lines Matching refs:da
10 DM da; /* distributed array */ member
50 DM da = user->da; in CpuFunction() local
56 PetscCall(DMGetLocalVector(da, &xl)); in CpuFunction()
57 PetscCall(DMGlobalToLocal(da, x, INSERT_VALUES, xl)); in CpuFunction()
58 PetscCall(DMDAVecGetArray(da, xl, &X)); in CpuFunction()
59 PetscCall(DMDAVecGetArray(da, r, &R)); in CpuFunction()
60 PetscCall(DMDAVecGetArray(da, user->F, &F)); in CpuFunction()
62 PetscCall(DMDAGetCorners(da, &xs, NULL, NULL, &xm, NULL, NULL)); in CpuFunction()
63 …PetscCall(DMDAGetInfo(da, NULL, &M, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU… in CpuFunction()
77 PetscCall(DMDAVecRestoreArray(da, xl, &X)); in CpuFunction()
78 PetscCall(DMDAVecRestoreArray(da, r, &R)); in CpuFunction()
79 PetscCall(DMDAVecRestoreArray(da, user->F, &F)); in CpuFunction()
80 PetscCall(DMRestoreLocalVector(da, &xl)); in CpuFunction()
92 DM da = user->da; in KokkosFunction() local
100 PetscCall(DMGetLocalVector(da, &xl)); in KokkosFunction()
101 PetscCall(DMGlobalToLocal(da, x, INSERT_VALUES, xl)); in KokkosFunction()
103 …PetscCall(DMDAGetInfo(da, NULL, &M, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU… in KokkosFunction()
104 PetscCall(DMDAVecGetKokkosOffsetView(da, xl, &X)); /* read only */ in KokkosFunction()
105 PetscCall(DMDAVecGetKokkosOffsetViewWrite(da, r, &R)); /* write only */ in KokkosFunction()
106 PetscCall(DMDAVecGetKokkosOffsetView(da, user->F, &F)); /* read only */ in KokkosFunction()
113 PetscCall(DMDAVecRestoreKokkosOffsetView(da, xl, &X)); in KokkosFunction()
114 PetscCall(DMDAVecRestoreKokkosOffsetViewWrite(da, r, &R)); in KokkosFunction()
115 PetscCall(DMDAVecRestoreKokkosOffsetView(da, user->F, &F)); in KokkosFunction()
116 PetscCall(DMRestoreLocalVector(da, &xl)); in KokkosFunction()
123 DM da = user->da; in StubFunction() local
128 PetscCall(DMGetGlobalVector(da, &rk)); in StubFunction()
133 PetscCall(DMRestoreGlobalVector(da, &rk)); in StubFunction()
156 DM da = user->da; in FormJacobian() local
162 PetscCall(DMDAVecGetArrayRead(da, x, &xx)); in FormJacobian()
163 PetscCall(DMDAGetCorners(da, &xs, NULL, NULL, &xm, NULL, NULL)); in FormJacobian()
168 …PetscCall(DMDAGetInfo(da, NULL, &M, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU… in FormJacobian()
215 PetscCall(DMDAVecRestoreArrayRead(da, x, &xx)); in FormJacobian()
245 PetscCall(DMDACreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_NONE, N, 1, 1, NULL, &ctx.da)); in main()
246 PetscCall(DMSetFromOptions(ctx.da)); in main()
247 PetscCall(DMSetUp(ctx.da)); in main()
253 PetscCall(DMCreateGlobalVector(ctx.da, &x)); in main()
279 PetscCall(DMCreateMatrix(ctx.da, &J)); in main()
300 PetscCall(DMDAVecGetKokkosOffsetViewWrite(ctx.da, F, &FF)); in main()
301 PetscCall(DMDAVecGetKokkosOffsetViewWrite(ctx.da, U, &UU)); in main()
308 PetscCall(DMDAVecRestoreKokkosOffsetViewWrite(ctx.da, F, &FF)); in main()
309 PetscCall(DMDAVecRestoreKokkosOffsetViewWrite(ctx.da, U, &UU)); in main()
352 PetscCall(DMDestroy(&ctx.da)); in main()