Home
last modified time | relevance | path

Searched refs:temp_local_mat (Results 1 – 1 of 1) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex59.c337 Mat temp_local_mat, elem_mat_DBC = 0, *usedmat; in ComputeSubdomainMatrix() local
367 PetscCall(MatCreate(PETSC_COMM_SELF, &temp_local_mat)); in ComputeSubdomainMatrix()
368 PetscCall(MatSetSizes(temp_local_mat, localsize, localsize, localsize, localsize)); in ComputeSubdomainMatrix()
369 PetscCall(MatSetOptionsPrefix(temp_local_mat, "subdomain_")); in ComputeSubdomainMatrix()
373 PetscCall(MatSetType(temp_local_mat, MATSEQAIJ)); in ComputeSubdomainMatrix()
375 PetscCall(MatSetType(temp_local_mat, MATSEQSBAIJ)); in ComputeSubdomainMatrix()
377 PetscCall(MatSetFromOptions(temp_local_mat)); in ComputeSubdomainMatrix()
381 PetscCall(MatSeqAIJSetPreallocation(temp_local_mat, i, NULL)); /* very overestimated */ in ComputeSubdomainMatrix()
382 PetscCall(MatSeqSBAIJSetPreallocation(temp_local_mat, 1, i, NULL)); /* very overestimated */ in ComputeSubdomainMatrix()
383 PetscCall(MatSeqBAIJSetPreallocation(temp_local_mat, 1, i, NULL)); /* very overestimated */ in ComputeSubdomainMatrix()
[all …]