Lines Matching refs:xtmp

628   Vec        xred, yred, xtmp, x, xp;  in PCTelescopeSetUp_dmda_scatters()  local
655 PetscCall(VecCreate(comm, &xtmp)); in PCTelescopeSetUp_dmda_scatters()
656 PetscCall(VecSetSizes(xtmp, m, PETSC_DECIDE)); in PCTelescopeSetUp_dmda_scatters()
657 PetscCall(VecSetBlockSize(xtmp, bs)); in PCTelescopeSetUp_dmda_scatters()
658 PetscCall(VecSetType(xtmp, ((PetscObject)x)->type_name)); in PCTelescopeSetUp_dmda_scatters()
659 PetscCall(VecScatterCreate(x, isin, xtmp, NULL, &scatter)); in PCTelescopeSetUp_dmda_scatters()
664 sred->xtmp = xtmp; in PCTelescopeSetUp_dmda_scatters()
810 PetscCall(VecScatterBegin(sred->scatter, ctx->xp, sred->xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
811 PetscCall(VecScatterEnd(sred->scatter, ctx->xp, sred->xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
814 PetscCall(VecGetArrayRead(sred->xtmp, &x_array)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
823 PetscCall(VecRestoreArrayRead(sred->xtmp, &x_array)); in PCTelescopeSubNullSpaceCreate_dmda_Telescope()
873 Vec xtmp, xp, xred, yred; in PCApply_Telescope_dmda() local
881 xtmp = sred->xtmp; in PCApply_Telescope_dmda()
895 PetscCall(VecScatterBegin(scatter, xp, xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCApply_Telescope_dmda()
896 PetscCall(VecScatterEnd(scatter, xp, xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCApply_Telescope_dmda()
899 PetscCall(VecGetArrayRead(xtmp, &x_array)); in PCApply_Telescope_dmda()
908 PetscCall(VecRestoreArrayRead(xtmp, &x_array)); in PCApply_Telescope_dmda()
917 PetscCall(VecGetArray(xtmp, &array)); in PCApply_Telescope_dmda()
925 PetscCall(VecRestoreArray(xtmp, &array)); in PCApply_Telescope_dmda()
926 PetscCall(VecScatterBegin(scatter, xtmp, xp, INSERT_VALUES, SCATTER_REVERSE)); in PCApply_Telescope_dmda()
927 PetscCall(VecScatterEnd(scatter, xtmp, xp, INSERT_VALUES, SCATTER_REVERSE)); in PCApply_Telescope_dmda()
936 Vec xtmp, xp, yred; in PCApplyRichardson_Telescope_dmda() local
945 xtmp = sred->xtmp; in PCApplyRichardson_Telescope_dmda()
960 PetscCall(VecScatterBegin(scatter, xp, xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCApplyRichardson_Telescope_dmda()
961 PetscCall(VecScatterEnd(scatter, xp, xtmp, INSERT_VALUES, SCATTER_FORWARD)); in PCApplyRichardson_Telescope_dmda()
964 PetscCall(VecGetArrayRead(xtmp, &x_array)); in PCApplyRichardson_Telescope_dmda()
972 PetscCall(VecRestoreArrayRead(xtmp, &x_array)); in PCApplyRichardson_Telescope_dmda()