M
mm77
Guest
I have a skill script with two nested foreach loops.
In the inner loop I run() simulations, get some results, plot to a
window and compute some quantities from the results which are put in a
vector.
In the outer loop I use the output of the vector (there are actually
four vectors), which are transformed into waveforms and plotted into
another window
I put a portion of the code inside a let statement and I get:
*Error* eval: branch distance too far in the generated code
If I put these two foreach loops in a let() statement (where those
vectors variables are declared in the let), I get:
*Error* eval: code size too big inside a construct (32767 max; 33341
given)!
Note that just commenting out one (just one!) line of code (I have 300
with more than more than 3/5 comments) make the script work! (and the
line is correct, just commenting out any line will work)
What's causing those messages?
How can solve this?
The script is not so large. Is SKILL/OCEAN expected to work with very
small script, or am I doing something wrong? For example all the
variables are global (simply because it's not convenient having to
declare all the used variable: it would much more convenient to have
to declare global variables instead). Is that because of this?
Thanks for any suggestion,
Marco
In the inner loop I run() simulations, get some results, plot to a
window and compute some quantities from the results which are put in a
vector.
In the outer loop I use the output of the vector (there are actually
four vectors), which are transformed into waveforms and plotted into
another window
I put a portion of the code inside a let statement and I get:
*Error* eval: branch distance too far in the generated code
If I put these two foreach loops in a let() statement (where those
vectors variables are declared in the let), I get:
*Error* eval: code size too big inside a construct (32767 max; 33341
given)!
Note that just commenting out one (just one!) line of code (I have 300
with more than more than 3/5 comments) make the script work! (and the
line is correct, just commenting out any line will work)
What's causing those messages?
How can solve this?
The script is not so large. Is SKILL/OCEAN expected to work with very
small script, or am I doing something wrong? For example all the
variables are global (simply because it's not convenient having to
declare all the used variable: it would much more convenient to have
to declare global variables instead). Is that because of this?
Thanks for any suggestion,
Marco