[Swift-user] assign temporary file to mapper

Michael Wilde wilde at mcs.anl.gov
Tue Nov 20 20:29:27 CST 2012


Hao,

Are you sure you assigned a value to output_chunks[2]?

Can you post the entire program, and the entire error message?

Thanks,

- Mike


----- Original Message -----
> From: "Hao Yang" <yanghao0614 at gmail.com>
> To: swift-user at ci.uchicago.edu
> Cc: mosastore at googlegroups.com
> Sent: Tuesday, November 20, 2012 7:22:45 PM
> Subject: [Swift-user] assign temporary file to mapper
> 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
> 
> 
> 
> 
> 
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user

-- 
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory




More information about the Swift-user mailing list