njoy / NJOY2016

Nuclear data processing with legacy NJOY
https://www.njoy21.io/NJOY2016
Other
98 stars 86 forks source link

Problem with generating binary thermal scattering ACE #333

Closed Imxienpi closed 7 months ago

Imxienpi commented 7 months ago

There is a question, when the “itype” card in acer module is set to 2, the continuous energy nuclear database is binary, but the thermal scattering database is decimal, why?

whaeck commented 7 months ago

I had a quick look at the source code for thermal scattering ACE files (in the aceth.f90 file) and it does seem that itype is set to 1 (i.e. ASCII files) regardless of the user input. We have never noticed this since we only deliver the MCNP library files in ASCII format.

However, we do not advice people to use the binary format for their ACE files. In the past, I have been confronted with issues in which MCNP does not accept a binary file because of the use of different compilers and compiler options between NJOY and MCNP.

Imxienpi commented 7 months ago

Got it. Thank you for your answer. Thank you very much!