Make sure that the your environment variable is set to the path to the cross_sections.xml file itself, not the directory that contains it. Doing the latter will result in the error that you are seeing.
Best,
Paul
Make sure that the your environment variable is set to the path to the cross_sections.xml file itself, not the directory that contains it. Doing the latter will result in the error that you are seeing.
Best,
Paul
I’m still having some difficulty. Any suggestions would be appropriated. In .bashrc, I’ve set ‘OPENMC_CROSS_SECTIONS=/home/krausjw/OpenMC/data/endfb71_hdf5/cross_sections.xml’ When I echo $OPENMC_CROSS_SECTIONS from a command prompt I see the path to the file as specified. However, when I run OpenMC, I get this error message:
ERROR: No cross_sections.xml file was specified in materials.xml, settings.xml,
or in the OPENMC_CROSS_SECTIONS environment variable. OpenMC needs such
a file to identify where to find ACE cross section libraries. Please
consult the user’s guide at http://mit-crpg.github.io/openmc for
information on how to set up ACE cross section libraries.
ERROR STOP
Thanks,
Jim
Hello James,
In bashrc file, add your data library path location like …
export OPENMC_CROSS_SECTIONS=’/home/krausjw/OpenMC/data/endfb71_hdf5/cross_sections.xml’
export OPENMC_CROSS_SECTIONS
Best wishes