Searched refs:s_localptr (Results 1 – 7 of 7) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex5.c | 301 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 D | ex6.c | 301 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 D | ex4.c | 347 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 D | ex2.c | 283 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 D | ex3.c | 338 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 D | ex21.c | 340 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 D | ex12.c | 271 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()
|