Searched refs:uloc (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/snes/tutorials/ |
| H A D | ex13.c | 249 Vec coordinates, uloc; in ComputeSpectral() local 260 PetscCall(DMGetLocalVector(dm, &uloc)); in ComputeSpectral() 261 PetscCall(DMGlobalToLocalBegin(dm, u, INSERT_VALUES, uloc)); in ComputeSpectral() 262 PetscCall(DMGlobalToLocalEnd(dm, u, INSERT_VALUES, uloc)); in ComputeSpectral() 263 PetscCall(DMPlexInsertBoundaryValues(dm, PETSC_TRUE, uloc, 0.0, NULL, NULL, NULL)); in ComputeSpectral() 264 PetscCall(VecViewFromOptions(uloc, NULL, "-sol_view")); in ComputeSpectral() 266 PetscCall(VecGetArrayRead(uloc, &array)); in ComputeSpectral() 351 PetscCall(VecRestoreArrayRead(uloc, &array)); in ComputeSpectral() 352 PetscCall(DMRestoreLocalVector(dm, &uloc)); in ComputeSpectral()
|