PCASMWeightedGetScaling#
Gets the diagonal weights supplied with PCASMWeightedSetScaling() or computed by the function provided with PCASMWeightedSetComputeScaling().
Synopsis#
#include "petscpc.h"
PetscErrorCode PCASMWeightedGetScaling(PC pc, PetscInt *n, Vec *scaling[])
Not Collective
Input Parameter#
pc - the
PCASMpreconditioner
Output Parameters#
n - if requested, the number of local subdomains for this processor, or zero if no weights have been supplied
scaling - if requested, the local scaling
Vec, orNULLif none have been supplied
Note#
The returned array and its vectors are owned by pc; do not free or destroy them. They
are released by PCReset() and PCDestroy(), and replaced by a further call to
PCASMWeightedSetScaling().
Fortran Note#
Declare scaling as Vec, pointer :: scaling(:). It is always returned and is disassociated when no weights
have been supplied; n may be PETSC_NULL_INTEGER. There is no restore routine, and the pointer must not be
used after PCReset(), PCDestroy(), or a further call to PCASMWeightedSetScaling().
See Also#
KSP: Linear System Solvers, PCASM, PCASMType, PCASMWeightedSetScaling(), PCASMSetType(), PCASMGetLocalSubdomains()
Level#
intermediate
Location#
Examples#
src/ksp/ksp/tutorials/ex8.c
src/ksp/pc/tests/ex13.c
src/ksp/pc/tests/ex13f.F90
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages