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

# PGADestroy(8)

deallocate memory for this instance of PGAPack, if this context initialized MPI, finalize MPI as well.

## NAME

PGADestroy - deallocate memory for this instance of PGAPack, if this context initialized MPI, finalize MPI as well.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGADestroy(ctx)
PGAContext *ctx
```

## LOCATION

system.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGADestroy(ctx);
```
