---
name: "PGAGetStoppingRuleType"
section: "8"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetStoppingRuleType"
---

# PGAGetStoppingRuleType(8)

Returns a symbolic constant that defines the termination criteria.

## NAME

PGAGetStoppingRuleType - Returns a symbolic constant that defines the termination criteria.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetStoppingRuleType(ctx)
PGAContext *ctx
```

## LOCATION

stop.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int stop;
:
stop = PGAGetStoppingRuleType(ctx);
if (stop & PGA_STOP_MAXITER)
printf("Stopping Rule = PGA_STOP_MAXITER0);
if (stop & PGA_STOP_NOCHANGE)
printf("Stopping Rule = PGA_STOP_NOCHANGE0);
if (stop & PGA_STOP_TOOSIMILAR)
printf("Stopping Rule = PGA_STOP_TOOSIMILAR0);
```
