XPRMrunmod
XPRMrunmod |
Purpose
Synopsis
int XPRMrunmod(XPRMmodel model, int *exitcode, const char *parlist);
Arguments
model
|
Reference to a model
|
exitcode
|
Pointer to an area where the model exit code value is returned
|
parlist
|
String composed of model parameter initializations separated by commas, may be
NULL
|
Return value
Execution status. Possible values are:
XPRM_RT_OK
|
|
XPRM_RT_ERROR
|
|
XPRM_RT_MATHERR
|
|
XPRM_RT_IOERR
|
|
XPRM_RT_NULL
|
A NULL reference error occurred
|
XPRM_RT_LICERR
|
Execution could not start because no license was available
|
XPRM_RT_STOP
|
|
XPRM_RT_BREAK
|
Interruption because of a breakpoint (see Section
Debugger interface)
|
Further information
1. This function executes the given model. The parameter
parlist may be used to initialize the model parameters of the program as well as the control parameters of the modules and packages in use (
e.g.
"PAR1=12,mypkg.par='tutu'"). The special model parameter
workdir defines the initial working directory of the model. The bit
XPRM_RT_STOP is set if the execution of the model has been interrupted by a call to the function
XPRMstoprunmod.
2. The parameter
exitcode receives the result of the execution (
i.e. parameter value of the ``exit'' procedure or
0 if the routine was not called), its value is meaningful only when the execution succeeded (
i.e. the status is
XPRM_RT_OK).
Related topics