Searched refs:Pscalar (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ksp/pc/impls/telescope/ |
| H A D | telescope_dmda.c | 493 Mat Pscalar, P; in PCTelescopeSetUp_dmda_permutation_3d() local 514 PetscCall(MatCreate(comm, &Pscalar)); in PCTelescopeSetUp_dmda_permutation_3d() 515 PetscCall(MatSetSizes(Pscalar, er - sr, er - sr, Mr, Mr)); in PCTelescopeSetUp_dmda_permutation_3d() 516 PetscCall(MatSetType(Pscalar, MATAIJ)); in PCTelescopeSetUp_dmda_permutation_3d() 517 PetscCall(MatSeqAIJSetPreallocation(Pscalar, 1, NULL)); in PCTelescopeSetUp_dmda_permutation_3d() 518 PetscCall(MatMPIAIJSetPreallocation(Pscalar, 1, NULL, 1, NULL)); in PCTelescopeSetUp_dmda_permutation_3d() 548 PetscCall(MatSetValue(Pscalar, sr + location, mapped_ijk, 1.0, INSERT_VALUES)); in PCTelescopeSetUp_dmda_permutation_3d() 552 PetscCall(MatAssemblyBegin(Pscalar, MAT_FINAL_ASSEMBLY)); in PCTelescopeSetUp_dmda_permutation_3d() 553 PetscCall(MatAssemblyEnd(Pscalar, MAT_FINAL_ASSEMBLY)); in PCTelescopeSetUp_dmda_permutation_3d() 554 PetscCall(MatCreateMAIJ(Pscalar, ndof, &P)); in PCTelescopeSetUp_dmda_permutation_3d() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex73.c | 178 Mat Pscalar; in DMDACreatePermutation_2d() local 229 PetscCall(MatCreate(comm, &Pscalar)); in DMDACreatePermutation_2d() 230 PetscCall(MatSetSizes(Pscalar, er - sr, er - sr, Mr, Mr)); in DMDACreatePermutation_2d() 231 PetscCall(MatSetType(Pscalar, MATAIJ)); in DMDACreatePermutation_2d() 232 PetscCall(MatSeqAIJSetPreallocation(Pscalar, 1, NULL)); in DMDACreatePermutation_2d() 233 PetscCall(MatMPIAIJSetPreallocation(Pscalar, 1, NULL, 1, NULL)); in DMDACreatePermutation_2d() 261 PetscCall(MatSetValue(Pscalar, sr + location, mapped_ijk, 1.0, INSERT_VALUES)); in DMDACreatePermutation_2d() 264 PetscCall(MatAssemblyBegin(Pscalar, MAT_FINAL_ASSEMBLY)); in DMDACreatePermutation_2d() 265 PetscCall(MatAssemblyEnd(Pscalar, MAT_FINAL_ASSEMBLY)); in DMDACreatePermutation_2d() 267 *mat = Pscalar; in DMDACreatePermutation_2d()
|