Problem with #INCLUDE under Linux

Moderators: michael_borland, soliday

Post Reply
dondreka
Posts: 11
Joined: 25 Apr 2012, 07:38

Problem with #INCLUDE under Linux

Post by dondreka » 11 Mar 2015, 10:14

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

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Problem with #INCLUDE under Linux

Post by michael_borland » 16 Mar 2015, 15:20

David,

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

Code: Select all

#include: "latticeData.lte"
--Michael

dondreka
Posts: 11
Joined: 25 Apr 2012, 07:38

Re: Problem with #INCLUDE under Linux

Post by dondreka » 17 Mar 2015, 02:53

Hi Michael,

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

Regards, David

Post Reply