Page 1 of 1

Error when using 'check model'

Posted: Sat Jul 01, 2023 3:47 am
by Dr John P Weldon
With a usable DLL I get an error when I use 'check model' in Vensim.

error: missing a closing parenthesis on a lookup table call
{
parameters
}
ACLSD[DCCT,DSCP,BSNS]=INITIAL(OPENWF(DCAT,DISC,DEPT,MODEL,1,2,RUNOP[OLS1],
OLIST,RECLN,RUNNO))~ ND ~|

The error is located after the first argument in the subprogram OPENWF. That equation is the first in the model.

Please tell me how to correct this error.

Re: Error when using 'check model'

Posted: Sat Jul 01, 2023 7:22 am
by Administrator
I've already given you instructions on what to do here via email.

The DLL is not usable, you need to rebuild it with double precision enabled (define DBLPREC).

Re: Error when using 'check model'

Posted: Sun Jul 02, 2023 3:24 am
by Dr John P Weldon
The DLL was 'usable' in the sense of being error-free in Visual Studio terms. I was previously unaware that 'check model' is governed by DBLPREC.

Re: Error when using 'check model'

Posted: Mon Jul 03, 2023 2:40 pm
by tomfid
The precision of the dll has to match the precision of the Vensim version in use. All Vensim versions are now double precision.