Page 1 of 1

Problem with #INCLUDE under Linux

Posted: 11 Mar 2015, 10:14
by dondreka
Hi there!

I'm having troubles using the #INCLUDE feature in an elegant lattice under Linux. The program seems to always convert the include path to uppercase letters. Since Linux paths are case sensitive, I get a file not found error like this:

Unable to find file /HOME/FSY/DONDREKA/LNX/OPTICS/ELEGANT/SIS100/SUITE/SLOWEXTRACTION/OUTPUT_SLOW/WARM/CLATTICE_SLOW_LINEAR_WARM.LTE

If I put the file into the directory from which I run elegant and convert its name to all uppercase, it works. But of course I would like to avoid this kind of hack.

Regards, David

Re: Problem with #INCLUDE under Linux

Posted: 16 Mar 2015, 15:20
by michael_borland
David,

Just use quotation marks around the filename, e.g.,

Code: Select all

#include: "latticeData.lte"
--Michael

Re: Problem with #INCLUDE under Linux

Posted: 17 Mar 2015, 02:53
by dondreka
Hi Michael,

thanks for the quickly. I should've tried that myself, though.

Regards, David