Lines Matching refs:ylocal
326 Vec xlocal, ylocal; in MatMult_Laplacian() local
337 PetscCall(DMGetLocalVector(appctx->da, &ylocal)); in MatMult_Laplacian()
338 PetscCall(VecSet(ylocal, 0.0)); in MatMult_Laplacian()
345 PetscCall(DMDAVecGetArray(appctx->da, ylocal, &yl)); in MatMult_Laplacian()
350 PetscCall(DMDAVecRestoreArray(appctx->da, ylocal, &yl)); in MatMult_Laplacian()
353 PetscCall(DMLocalToGlobalBegin(appctx->da, ylocal, ADD_VALUES, y)); in MatMult_Laplacian()
354 PetscCall(DMLocalToGlobalEnd(appctx->da, ylocal, ADD_VALUES, y)); in MatMult_Laplacian()
356 PetscCall(DMRestoreLocalVector(appctx->da, &ylocal)); in MatMult_Laplacian()
366 Vec xlocal, ylocal; in MatMult_Advection() local
377 PetscCall(DMGetLocalVector(appctx->da, &ylocal)); in MatMult_Advection()
378 PetscCall(VecSet(ylocal, 0.0)); in MatMult_Advection()
381 PetscCall(DMDAVecGetArray(appctx->da, ylocal, &yl)); in MatMult_Advection()
386 PetscCall(DMDAVecRestoreArray(appctx->da, ylocal, &yl)); in MatMult_Advection()
389 PetscCall(DMLocalToGlobalBegin(appctx->da, ylocal, ADD_VALUES, y)); in MatMult_Advection()
390 PetscCall(DMLocalToGlobalEnd(appctx->da, ylocal, ADD_VALUES, y)); in MatMult_Advection()
392 PetscCall(DMRestoreLocalVector(appctx->da, &ylocal)); in MatMult_Advection()