# Synopsis

(macro) int mda_IsValidModel(int model)

# Purpose

Test if model is valid.

# Description

Given a model, determine if it is a valid model number. A valid model is one which is within the range of models (i.e. 0 <= model < MDA_MAXMODEL) and which has been allocated (but not freed).

# Input

## model

Model number to be checked

# Return

          0 if model number is not valid
          1 if model number is valid
          .fi