Hi,
I am trying to use the built-in expression % to compute the modulus in mod file. However, there are errors for the compilation of the mod files. I have tried this expression in GUI. It works perfectly. Can anybody tell me why? Thanks.
modulus in the mod file
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: modulus in the mod file
What is the error message? What is the statement in the mod file that generates the error message?there are errors for the compilation of the mod files
Re: modulus in the mod file
syntax error:
Illegal expression:
Illegal statement:
Illegal block at line 114 in file Isinunoisy.mod
if ((t%1000)>500) {
^
make: *** [Isinunoisy.c] Error 1
The above is the error information. However, I can use % in the terminal.
Illegal expression:
Illegal statement:
Illegal block at line 114 in file Isinunoisy.mod
if ((t%1000)>500) {
^
make: *** [Isinunoisy.c] Error 1
The above is the error information. However, I can use % in the terminal.
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: modulus in the mod file
It looks like you are working with a modification of a file called Isinunoisy.mod. The single instance of that file that exists in ModelDB may work for the purpose that its authors intended, but the modified version that you have is not going to do what you want (indeed, the original verision may cause problems for others who may try to reuse it). If you email your version to me
ted dot carnevale at yale dot edu
and tell me what you are trying to make it do, I'll see if I can fix it so that it works properly.
ted dot carnevale at yale dot edu
and tell me what you are trying to make it do, I'll see if I can fix it so that it works properly.