Error when using 'check model'

Use this forum to post Vensim related questions.
Post Reply
Dr John P Weldon
Member
Posts: 39
Joined: Sun Oct 07, 2018 7:56 pm
Vensim version: DSS

Error when using 'check model'

Post 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.
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Error when using 'check model'

Post 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).
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Dr John P Weldon
Member
Posts: 39
Joined: Sun Oct 07, 2018 7:56 pm
Vensim version: DSS

Re: Error when using 'check model'

Post 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.
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Error when using 'check model'

Post 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.
Post Reply