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.
Error when using 'check model'
-
- Member
- Posts: 39
- Joined: Sun Oct 07, 2018 7:56 pm
- Vensim version: DSS
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Error when using 'check model'
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).
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Member
- Posts: 39
- Joined: Sun Oct 07, 2018 7:56 pm
- Vensim version: DSS
Re: Error when using 'check model'
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'
The precision of the dll has to match the precision of the Vensim version in use. All Vensim versions are now double precision.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/