Home
last modified time | relevance | path

Searched refs:s_localptr (Results 1 – 7 of 7) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex5.c301 PetscScalar *s_localptr, h = appctx->h, ex1, ex2, sc1, sc2, tc = t; in ExactSolution() local
308 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
318 …for (i = 0; i < appctx->m; i++) s_localptr[i] = PetscCosScalar(sc1 * (PetscReal)i) * ex1 + 3. * Pe… in ExactSolution()
323 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
H A Dex6.c301 PetscScalar *s_localptr, h = appctx->h, ex1, ex2, sc1, sc2; in ExactSolution() local
308 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
318 …for (i = 0; i < appctx->m; i++) s_localptr[i] = PetscSinReal(PetscRealPart(sc1) * (PetscReal)i) * … in ExactSolution()
323 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
H A Dex4.c347 PetscScalar *s_localptr, h = appctx->h, ex1, ex2, sc1, sc2; in ExactSolution() local
360 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
370 …for (i = mybase; i < myend; i++) s_localptr[i - mybase] = PetscSinScalar(sc1 * (PetscReal)i) * ex1… in ExactSolution()
375 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
H A Dex2.c283 PetscScalar *s_localptr, h = appctx->h, x; in ExactSolution() local
296 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
304 s_localptr[i - mybase] = (t + 1.0) * (1.0 + x * x); in ExactSolution()
310 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
H A Dex3.c338 PetscScalar *s_localptr, h = appctx->h, ex1, ex2, sc1, sc2, tc = t; in ExactSolution() local
345 PetscCall(VecGetArrayWrite(solution, &s_localptr)); in ExactSolution()
355 …for (i = 0; i < appctx->m; i++) s_localptr[i] = PetscSinScalar(sc1 * (PetscReal)i) * ex1 + 3. * Pe… in ExactSolution()
360 PetscCall(VecRestoreArrayWrite(solution, &s_localptr)); in ExactSolution()
H A Dex21.c340 PetscScalar *s_localptr, h = appctx->h, x; in ExactSolution() local
353 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
361 s_localptr[i - mybase] = (t + 1.0) * (1.0 + x * x); in ExactSolution()
367 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()
/petsc/src/ts/tests/
H A Dex12.c271 PetscScalar *s_localptr, h = appctx->h, x; in ExactSolution() local
284 PetscCall(VecGetArray(solution, &s_localptr)); in ExactSolution()
292 s_localptr[i - mybase] = (t + 1.0) * (1.0 + x * x); in ExactSolution()
298 PetscCall(VecRestoreArray(solution, &s_localptr)); in ExactSolution()