simon
Joined: 05 Jul 2006 Posts: 268
|
Posted: Fri Jul 23, 2021 10:36 pm Post subject: Where |
|
|
In version 8.80 I am getting a new error message that was not being issued in previous versions. The message is:
Quote: | error 1264 - The compiler can't process vector subscripts within a WHERE construct |
The code at the line in question is:
Code: | Where (a(iarray(i),:,k) == b) a(iarray(i),:,k) = c |
Rather than writing out all the declarations, you can assume that Implicit None has been used, and that everything is a scalar except for a, and iarray.
I can confirm that replacing the above with the code below resolves the problem, but it would be nice not to have to go and apply patches.
Code: | j = iarray(i)
Where (a(j,:,k) == b) v(j,:,k) = c |
If the above examples are insufficient, I will attempt to provide more complete code that reproduces the problem, but hopefully the above is sufficient for now. |
|