# blacs_exit

Frees all BLACS contexts and releases all allocated memory.

## Syntax

call blacs_exit( continue )

## Input Parameters

continue | INTEGER. Flag indicating whether message passing continues after the BLACS are done. If continue is non-zero, the user is assumed to continue using the machine after completing the BLACS. Otherwise, no message passing is assumed after calling this routine.

## Description

This routine frees all BLACS contexts and releases all allocated memory.

This routine should be called when a process has finished all use of the BLACS. The continue parameter indicates whether the user will be using the underlying communication platform after the BLACS are finished. This information is most important for the PVM BLACS. If continue is set to 0, then pvm_exit is called; otherwise, it is not called. Setting continue not equal to 0 indicates that explicit PVM send/recvs will be called after the BLACS routines are used. Make sure your code calls pvm_exit. PVM users should either call blacs_exit or explicitly call pvm_exit to avoid PVM problems.

## See Also

BLACS Routines Usage Example
Parent topic: Destruction Routines