[Swift-user] Problem with iterate
Tiberiu Stef-Praun
tiberius at ci.uchicago.edu
Wed Feb 17 10:48:38 CST 2010
Hi Guys
I have put together this really simple iteration example, which I expected
to work (and it used to work in the past):
==============
type file;
app (file initOut) initFunc (string inputString){
echo inputString stdout=@filename(initOut);
}
app (file catOut) catFunc (file catIn){
cat @filename(catIn) @filename(catOut);
}
runLoop(){
file statePathFiles[]<concurrent_mapper; prefix="statePathName.",
suffix=".mat">;
statePathFiles[0]=initFunc("hello");
iterate it{
trace(@strcat("Iteration: ",it));
statePathFiles[it+1]=catFunc(statePathFiles[it]);
} until (it==0);
}
runLoop();
================
However, I get an error like this:
Running UC Eval
Could not start execution.
variable statePathFiles has multiple writers.
Please suggest solutions for it .
Thank you
Tibi
--
Tiberiu (Tibi) Stef-Praun, PhD
Computational Sciences Researcher
Computation Institute
5640 S. Ellis Ave, #405
University of Chicago
http://www-unix.mcs.anl.gov/~tiberius/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20100217/aeb88544/attachment.html>
More information about the Swift-user
mailing list