AMLSetCutoffSize

set the cutoff size below which no further levels will be generated

Synopsis

int AMLSetCutoffSize(PC pc,int siz)

Parameters

pc
the preconditioner
siz
the minimum size for a subdomain; when one subdomain falls below this threshold, the whole method switches to a single solver application.
*/ int AMLSetCutoffSize(PC pc,int siz) { int ierr,flag;

PetscFunctionBegin; ierr = PCHasType(pc,PCMultiLevel,&flag); CHKERRQ(ierr); if (!flag) SETERRQ(1,0,"Cutoff sizes can only be set for AML"); { PC_MCol_struct *pc_data = (PC_MCol_struct *) pc->data; pc_data->cutoff = siz; } PetscFunctionReturn(0); }

#undef __FUNC__ #define __FUNC__ "AMLSetStrongRatio" /*@ AMLSetStrongRatio - set the threshold for off-diagonal connections to be considered strong connections.

Parameters

pc
the preconditioner
weight
a fraction

Location:-maprefinterface.c


PC Index
Table of Contents