[Swift-user] unmapping a file

Michael Wilde wilde at mcs.anl.gov
Fri Jan 22 15:49:21 CST 2010


There is no way to unmap a variable.

And you need to manually ensure that you dont map the same physical 
filename to multiple *output* variables, as then its very likely that 
Swift will complain at run time that its trying to map and access a file 
that is already mapped to another variable (it complains of a "cache" 
conflict in such cases, as the file is already in a site's file cache).

Swift does let you map the same filename for *input* to different 
variables or array members.

If a file is already mapped to a variable, one will often reference that 
same variable in a later statement to re-read the same file again, or to 
read a previously produced file.

But in this example, the purpose of returning a list of tile filenames 
from analyzelanduse.sh was so that you can read in this list and use it 
to re-map a *subset* of a previously mapped array of files.

- Mike

On 1/22/10 2:45 PM, Antonius Sardjito wrote:
> Hi, 
> 
> Is there a way to unmap a variable from a file ? 
> say f----> f.txt are there ways to unmap this so I could have say 
> s--->f.txt 
> 
> Thanks
> -Antonius
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user



More information about the Swift-user mailing list