njoy / NJOY2016

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

Photoatomic data processing fails in ACER #91

Closed whaeck closed 5 years ago

whaeck commented 6 years ago

NJOY 2016 fails in ACER when using the following input file for processing photoatomic data from ENDF/B-VII.1:

acer
31 32 0 33 34
4/
'Uranium Photoatomic data'/
9200/
stop

Tape31 is the photoatomic ENDF file and tape32 is the atomic relaxation ENDF file. as downloaded from the NNDC website.

The following error is reported:

 njoy 2016.37  12Jun18                                       06/25/18 10:38:55
 *****************************************************************************

 acer...                                                                  0.0s
At line 852 of file /home/wim/Projects/NJOY2016/njoy2016/src/endf.f90 (unit = 32, file = 'fort.32')
Fortran runtime error: End of file

Error termination. Backtrace:
#0  0x7f08bf6d0377 in read_sf
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:368
#1  0x7f08bf6d1344 in formatted_transfer_scalar_read
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:1375
#2  0x7f08bf6d1344 in formatted_transfer
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:1995
#3  0x7f08bfb10e0d in lineio
    at /home/wim/Projects/NJOY2016/njoy2016/src/endf.f90:852
#4  0x7f08bfb16725 in __endf_MOD_moreio
    at /home/wim/Projects/NJOY2016/njoy2016/src/endf.f90:449
#5  0x7f08bfa479b1 in alax
    at /home/wim/Projects/NJOY2016/njoy2016/src/acepa.f90:548
#6  0x7f08bfa4ede6 in __acepa_MOD_acepho
    at /home/wim/Projects/NJOY2016/njoy2016/src/acepa.f90:241
#7  0x7f08bfa89358 in __acem_MOD_acer
    at /home/wim/Projects/NJOY2016/njoy2016/src/acer.f90:440
#8  0x401c58 in njoy
    at /home/wim/Projects/NJOY2016/njoy2016/src/main.f90:238
#9  0x401e42 in main
    at /home/wim/Projects/NJOY2016/njoy2016/src/main.f90:112

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7f08beb0127f in ???
#1  0x7f08bf6d4305 in sclose
    at /home/wim/Temp/gcc-6.4/libgfortran/io/unix.h:95
#2  0x7f08bf6d4305 in close_unit_1
    at /home/wim/Temp/gcc-6.4/libgfortran/io/unit.c:703
#3  0x7f0910d0c189 in ???
#4  0x7f08beb04b68 in ???
#5  0x7f08beb04bb6 in ???
#6  0x7f08bf6d0377 in read_sf
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:368
#7  0x7f08bf6d1344 in formatted_transfer_scalar_read
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:1375
#8  0x7f08bf6d1344 in formatted_transfer
    at /home/wim/Temp/gcc-6.4/libgfortran/io/transfer.c:1995
#9  0x7f08bfb10e0d in lineio
    at /home/wim/Projects/NJOY2016/njoy2016/src/endf.f90:852
#10  0x7f08bfb16725 in __endf_MOD_moreio
    at /home/wim/Projects/NJOY2016/njoy2016/src/endf.f90:449
#11  0x7f08bfa479b1 in alax
    at /home/wim/Projects/NJOY2016/njoy2016/src/acepa.f90:548
#12  0x7f08bfa4ede6 in __acepa_MOD_acepho
    at /home/wim/Projects/NJOY2016/njoy2016/src/acepa.f90:241
#13  0x7f08bfa89358 in __acem_MOD_acer
    at /home/wim/Projects/NJOY2016/njoy2016/src/acer.f90:440
#14  0x401c58 in njoy
    at /home/wim/Projects/NJOY2016/njoy2016/src/main.f90:238
#15  0x401e42 in main
    at /home/wim/Projects/NJOY2016/njoy2016/src/main.f90:112
Segmentation fault

Of note: this processes using NJOY99. NJOY2012 fails as well. If I use ENDF/B-VIII.0 data, all three versions of NJOY fail - maybe due to updates to the ENDF format for these data or array sizes set in the code that are not large enough when processing ENDF/B-VIII.0.