Hello,
I have a simple model:
model Testing
parameter Integer r=64 "Number of rows: the y coordinate such
that higher indicies are lower";
parameter Integer c=64 "Number of columns: the x
coordinate";
Real u[r,c](start = zeros(r,c)) "The x-component of velocity";
Real v[r,c](start = zeros(r,c)) "The y-component of velocity";
algorithm
when sample(0.1,0.1) then
for i in 1:size(u,1), j in 1:size(u,2) loop
u[i,j] := u[i,j] + 2;
v[i,j] := v[i,j] + 1;
end for;
end when;
end Testing;
for which I get the following error when I try to simulate:
>>> simulate(Tesing, startTime=0.0, stopTime=1.0); getErrorString()
record
resultFile = "Simulation failed.
Error occured while flattening model D2Q9
"
end record
""
Any ideas on what I'm doing wrong?
Thanks,
Jason
--------------------------------------------
Jason Brown
Georgia Institute of Technology
College of Architecture
[EMAIL PROTECTED]