[Swift-user] assign temporary file to mapper

Hao Yang yanghao0614 at gmail.com
Tue Nov 20 19:22:45 CST 2012


Hi, all:

I have some problem assigning temporary file to some mapper variable
(explained in the code below).

type RSFile;
string output_name;
output_name = @arg("out","out.rsf");
RSFile output_data <single_file_mapper; file=output_name>;
RSFile output_chunks[];
// some calculation to compute output_chunks[0], output_chunks[1],
output_chunks[2]
// at the end
output_data = output_chunks[2];

When I try this script, swift reports "File output_chunks[2] not found "
error and failed. But the output_chunks[2] is still available in the
directory generated by swift (_concurrent/output_chunks-
ae9bd0b3-ad88-45b0-95f4-f036d2d70e58--array). Should this error message be
expected?

Thank you.

-- 
Best Regards,
Hao Yang
The University of British Columbia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20121120/3c138cee/attachment.html>


More information about the Swift-user mailing list