PGAGetStoppingRule(8)

NAME
PGAGetStoppingRule - Returns the termination criteria

INPUT PARAMETERS
ctx - context variable

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
int  PGAGetStoppingRule(ctx)
PGAContext *ctx

LOCATION
get.c

EXAMPLE
Example:
PGAContext *ctx;
int stop;
:
stop = PGAGetStoppingRule(ctx);
for (mask = PGA_STOP_MAXITER; mask <= PGA_STOP_TOOSIMILAR;
mask <<= 1)
if ((stop & mask) == mask)
switch (mask) {
case PGA_STOP_MAXITER:
printf("Stopping Rule = PGA_STOP_MAXITER);
break;
case PGA_STOP_NOCHANGE:
printf("Stopping Rule = PGA_STOP_NOCHANGE);
break;
case PGA_STOP_TOOSIMILAR:
printf("Stopping Rule = PGA_STOP_TOOSIMILAR);
break;
}