I am having a problem where RATS becomes completely unresponsive and will not evaluate even the simplest code submitted, and shows no errors in the output window.
I began with the following code, which works fine:
--------------------------
compute counter = 0
do i=1,10
if condition
{
compute counter = counter + 1
}
end do i
more code
-------------------------
But if I add one more little part, so that it becomes the following,
then RATS becomes completely unresponsive, and no code submitted will be run.
--------------------------
compute counter = 0
do i=1,10
if condition
{
compute counter = counter + 1
}
end do i
if counter.eq.0
{
some code
}
more code
-------------------------
It would be nice if RATS could display any sort of error message for this, but none come up.
Any ideas?
-CP
RATS unresponsive
Re: RATS unresponsive
In the second case, the "IF" puts RATS into compile mode. It's looking for the signal to take it out of that. An END will do that. If that looks weird, rewrite ascap wrote:I am having a problem where RATS becomes completely unresponsive and will not evaluate even the simplest code submitted, and shows no errors in the output window.
I began with the following code, which works fine:
Code: Select all
compute counter = 0 do i=1,10 if condition { compute counter = counter + 1 } end do i more code
-------------------------
But if I add one more little part, so that it becomes the following,
then RATS becomes completely unresponsive, and no code submitted will be run.
---------------------------------------------------Code: Select all
compute counter = 0 do i=1,10 if condition { compute counter = counter + 1 } end do i if counter.eq.0 { some code } more code
It would be nice if RATS could display any sort of error message for this, but none come up.
Any ideas?
-CP
Code: Select all
{
if counter.eq.0
{
some code
}
}