Lines Matching refs:F
11 Vec F; /* right-hand side of PDE */ member
51 PetscScalar *X, *R, *F, d; in CpuFunction() local
60 PetscCall(DMDAVecGetArray(da, user->F, &F)); in CpuFunction()
75 for (i = xs; i < xs + xm; i++) R[i] = d * (X[i - 1] - 2.0 * X[i] + X[i + 1]) + X[i] * X[i] - F[i]; in CpuFunction()
79 PetscCall(DMDAVecRestoreArray(da, user->F, &F)); in CpuFunction()
97 ConstPetscScalarKokkosOffsetView X, F; in KokkosFunction() local
106 PetscCall(DMDAVecGetKokkosOffsetView(da, user->F, &F)); /* read only */ in KokkosFunction()
111 else R(i) = d * (X(i - 1) - 2.0 * X(i) + X(i + 1)) + X(i) * X(i) - F(i); /* interior */ in KokkosFunction()
115 PetscCall(DMDAVecRestoreKokkosOffsetView(da, user->F, &F)); in KokkosFunction()
225 Vec x, r, U, F; /* vectors */ in main() local
256 PetscCall(VecDuplicate(x, &F)); in main()
257 ctx.F = F; in main()
258 PetscCall(PetscObjectSetName((PetscObject)F, "Forcing function")); in main()
300 PetscCall(DMDAVecGetKokkosOffsetViewWrite(ctx.da, F, &FF)); in main()
308 PetscCall(DMDAVecRestoreKokkosOffsetViewWrite(ctx.da, F, &FF)); in main()
314 PetscCall(VecView(F, NULL)); in main()
349 PetscCall(VecDestroy(&F)); in main()