BDSBunch User File paths not followed properly

Issue #24 resolved
Laurie Nevay created an issue

In BDSBunchUser the user can specify a file and the format. With other filenames in the parser - for example any filename after "include" an absolute path is built up from the current working directory, the relative path to the main .gmad file and then the relative path as specified in the .gmad file.

This is followed with includes, geometry files but not input bunch distribution files. This means you can only use this bunch distribution if you execute bdsim from the directory with the bunch user file.

Comments (4)

  1. Jochem Snuverink

    discussed and agreed that the parser should handle this. It should distinguish between relative and absolute paths and in case BDSIMPATH is set. There is a bit of code in parser that can be put in a function.

  2. Jochem Snuverink

    testing successful. paths for bunch files are taken relative to the main .gmad file now (as is done for others like geometry)

  3. Log in to comment