Initializing help system before first use

XPRMrunmod

XPRMrunmod


Purpose
Run a model.
Synopsis
int XPRMrunmod(XPRMmodel model, int *returned, const char *parlist);
Arguments
model 
Reference to a model
returned 
Pointer to an area where the result value is returned
parlist 
String composed of model parameter initializations separated by commas, may be NULL
Return value
XPRM_RT_OK 
Normal termination
XPRM_RT_ERROR 
An error occured during execution
XPRM_RT_MATHERR 
Mathematical error ( e.g. division by zero)
XPRM_RT_IOERR 
Input/output error ( e.g. cannot open file)
XPRM_RT_NULL 
A NULL reference error occurred
XPRM_RT_LICERR 
Execution could not start because no license was available
XPRM_RT_STOP 
Bit set if execution has been interrupted
XPRM_RT_BREAK 
Interruption because of a breakpoint (see Section Debugger interface)
Further information
This function executes the given model. The parameter parlist may be used to initialize the model parameters of the model/program ( e.g. "PAR1=12,PAR2='tutu'"). The special model parameter workdir defines the initial working directory of the model. The parameter returned receives the result of the execution ( e.g. parameter value of the ``exit'' procedure). The bit XPRM_RT_STOP is set if the execution of the model has been interrupted by a call to the function XPRMstoprunmod.
Related topics