[Swift-user] __root__ in filename
Mihael Hategan
hategan at mcs.anl.gov
Wed Dec 10 15:21:53 CST 2014
Hi,
In 0.95 this is a bit of a known problem. This should be fixed in trunk.
A backport of the fix may be possible and should probably be done. Can
you easily switch to trunk? If not, I'll try to do the backport sooner.
Mihael
On Wed, 2014-12-10 at 15:11 -0600, Ketan Maheshwari wrote:
> 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
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
More information about the Swift-user
mailing list