Initializing help system before first use

XPRMexecmod

XPRMexecmod


Purpose
Compile, load then run a model source file.
Synopsis
int XPRMexecmod(const char *options, const char *srcfile, const char *parlist, int *returned, XPRMmodel *rtmod);
Arguments
options 
Compilation options (may be NULL)
scrfile 
Name of the source file
parlist 
String composed of model parameter initializations separated by commas, may be NULL
returned 
Pointer to an area where the result value is returned
rtmod 
Pointer to an area where the model pointer is returned (may be NULL)
Return value
<0 
Compilation failed
Function executed sucessfully
>0 
An error occured during model execution
Further information
This function calls in sequence XPRMcompmod, XPRMloadmod, and then XPRMrunmod (no BIM file is generated). If parameter rtmod is not NULL, this pointer is initialized with the model reference. Otherwise, the model is unloaded after execution.
Related topics