pkCleanData

Name

pkCleanData -- Deallocates arrays, destroying all the information on chemical data

Description

The subroutine pkCleanData destroys all private arrays of PLASMAKIN. These arrays are used to hold the chemical data and are created when the data file is read.

Syntax

pkCleanData( [STAT] )

NameDescriptionData type and attributes
STATExecution status indicatorINTEGER, OPTIONAL, INTENT(OUT)

Results

STAT = 0: no errors; STAT = n: error number.

Comments

Why is this subroutine needed?

Examples

Example E-2. pkCleanData: Deallocating PLASMAKIN data.

  INTEGER               :: ErrorStatus
  CHARACTER, PARAMETER  :: StopCode = 'pkError: Memory deallocation error'
  ...
  CALL pkCleanData( ErrorStatus )
  IF( ErrorStatus /= 0 ) STOP StopCode