[Swift-user] __root__ in filename

Ketan Maheshwari ketan at mcs.anl.gov
Wed Dec 10 15:11:36 CST 2014


Hi,

In an app that needs input files with same name but different extension, I
am trying to use regexp on the filename() of a mapped file. However, Swift
adds '__root__' to the path of file which cause the file to be not found in
the new location resulting in error as:

org.griphyn.vdl.mapping.MissingDataException: File not found for
variable 'in_sto':
file://localhost/__root__/lcrc/project/NEXTGENOPT/DSP_old/examples/smps/dcap/dcap332_500.sto

Relevant code is:

file timfiles[]<filesys_mapper;
location="/lcrc/project/NEXTGENOPT/DSP_old/examples/smps/dcap",
pattern="*.tim">;
file in_sto <single_file_mapper; file=regexp(filename(timfiles[0]), "tim",
"sto")>;

Thanks for any workaround suggestions for this,
Ketan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20141210/428b9a1d/attachment.html>


More information about the Swift-user mailing list