- #1
JoAuSc
- 198
- 1
Let's say you have an array A and a variable B (both reals). Apparently
parameter (A = (/1.2, 3.4, .../) )
is illegal, so you have to do
data A /1.2, 3.4, .../
instead. However, what if you have a statement afterwards like this?
1 parameter (A = (/1.2, 3.4, .../) )
...
2 parameter (B = A(3))
If you change 1 to a data statement, 2 becomes illegal since you can only declare parameters with other parameters, but 1 is illegal as is. How would I declare something like this that's legal?
parameter (A = (/1.2, 3.4, .../) )
is illegal, so you have to do
data A /1.2, 3.4, .../
instead. However, what if you have a statement afterwards like this?
1 parameter (A = (/1.2, 3.4, .../) )
...
2 parameter (B = A(3))
If you change 1 to a data statement, 2 becomes illegal since you can only declare parameters with other parameters, but 1 is illegal as is. How would I declare something like this that's legal?