XS Loading Error

Hi guys,

Tried to run OpenMC 0.5.2 on BG/Q, using MPICH 3.1.2 compiled with “powerpc64-bgq-linux-gcc (BGQ-V1R2M2-140729) 4.7.2”, but XS data failed to load (see following errors)

Version: 0.5.2
Git SHA1: f33c08fb5e2cc6b662ce988ab7a3e76afe4cd1a5
Date/Time: 2014-11-06 03:12:31
MPI Processes: 2

It may be an endianness issue if your cross sections are in binary. Unless otherwise instructed, your compiler on BG/Q probably assumes big-endian whereas the data is likely little-endian. I have a script that can convert between big and little here:
https://gist.github.com/paulromano/5057822

It’s also possible that it may be an issue with the record length specified in your cross_sections.xml. You can try varying it from 4096 to 1024 to see if that does anything.

Paul

Thanks Paul! The conversion program solved the problem.