Synopsis
PDX_MSGT mda_SaveModel(long option, char *file, int num_models, int *models)
Purpose
Save a model as an ASCII or BINARY file.
Description
The specified model will be saved as an ASCII or BINARY file that can be restored using mda_RestoreModel. This function will be enhanced in the future to allow multiple models to be saved in a single model file. For now num_models is not used (but should be set to 1 for future compatibility) and only a single model may be specified.
See the mda_intro manual page for additional information about saving and restoring models.
Input
option
MDA_OVERWRITE
If the destination file already exists it is to be overwritten. The default is to return an error if the file already exists.
MDA_BINARY
Save as binary
file
File to store model in
num_models
Number of models to be saved (must be specified as 1)
models
Array of models to be saved
Return
MDA error code