[Swift-user] still stuck on fold9.swift
Hodgess, Erin
HodgessE at uhd.edu
Tue Jun 16 17:13:59 CDT 2009
Ok. We're back to fold9.swift again, but it's saying that there are multiple writers.
These are in /home/erin/swift1.
Is it because of the recursive nature of the a[v+1] setup, maybe?
thanks,
Erin
[erin at communicado swift1]$ swift -tc.file tc.data fold9.swift
Could not start execution.
variable a has multiple writers.
[erin at communicado swift1]$ cat fold9.swift
type counterfile;
(counterfile t) echo(string m) {
app {
echo m stdout=@filename(t);
}
}
(counterfile t) countstep(counterfile i) {
app {
wcl @filename(i) @filename(t);
}
}
counterfile a[] <simple_mapper;prefix="foldout">;
a[0] = echo("793578934574893");
iterate v {
a[v+1] = countstep(a[v]);
trace(@extractint(a[v+1]));
} until (@extractint(a[v+1]) <= 1);
[erin at communicado swift1]$ cat tc.data
#NOTE WELL: fields in this file must be separated by tabs, not spaces
# and there must be no trailing whitespace at the end of each line.
#
# sitename app pathname (ignored) (ignored) profiles
localhost echo /bin/echo INSTALLED INTEL32::LINUX null
teraport echo /bin/echo INSTALLED INTEL32::LINUX null
localhost translate /usr/bin/tr INSTALLED INTEL32::LINUX null
localhost R /home/erin/R-2.9.0/bin/R INSTALLED INTEL32::LINUX null
localhost wc /usr/bin/wc INSTALLED INTEL32::LINUX null
localhost convert /usr/bin/convert INSTALLED INTEL32::LINUX null
localhost wcl /home/erin/swift1 INSTALLED INTEL32::LINUX null
[erin at communicado swift1]$
Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090616/6c4b9552/attachment.html>
More information about the Swift-user
mailing list