Page 1 of 1

Setting up path to XS data directory on a Mac

Posted: Sun Jun 02, 2019 6:23 pm
by fdeguillaume
Hi there,

I successfully compiled and set up Serpent on a Mac.
However when running a example it fails on not finding the main XS Data directory with error message:

"Reading directory files...
ReadDirectoryFiles: ACE data file "/xs/sss_jeff311u.xsdata" does not exist."

From the documentation I thought that setting environment variables like this would solve this issue:

SERPENT_DATA="/Applications/Serpent/xsdata"
export SERPENT_DATA

knowing that I installed the main XS data files there and that I converted the *.xsdir files with xsdirconvert.pl .
Should I also change modes of these files to be executable?

Thanks for your help!

Best regards

Re: Setting up path to XS data directory on a Mac

Posted: Mon Jun 03, 2019 10:10 am
by Riku Tuominen
Which Serpent version are you using? I'm asking this because the latest Serpent version prints a slightly different error message. Based on the error message it seems that Serpent is able to locate the cross section directory file but in that file the paths to ACE files are incorrect. How does your .xsdata look like? It should contains lines like the ones below which specify the nuclide, the path to ace file etc.

1001.00c 1001.00c 1 1001 0 1.007825 0 0 /home/rtrikuk/XSdata/xsss2-beta/data/1001EDF71.ace
H-1.00c 1001.00c 1 1001 0 1.007825 0 0 /home/rtrikuk/XSdata/xsss2-beta/data/1001EDF71.ace

Re: Setting up path to XS data directory on a Mac

Posted: Tue Jun 11, 2019 7:58 pm
by fdeguillaume
Hi,

Actually I converted the .xsdir files correctly to .xsdata as you explained, and paths to the actual data atre as you explained - they are correct.
I just didn't know that the path to *.xsdata files had to be specified in the input file directly, not in an environment variable!

Now paths are correctly defined and everything works fine.
Thanks for your help!

Frederic

Re: Setting up path to XS data directory on a Mac

Posted: Wed Jun 12, 2019 10:10 am
by Jaakko Leppänen
You can define the default acelib using environment variable "SERPENT_ACELIB". This way you don't need the "set acelib" card in the input.