From b2213ff343b0e63ef6b7be5e35888512ec1f7ced Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 19 Jun 2017 11:12:08 -0500 Subject: [PATCH] Set elastic type in ACER card 9 correctly --- openmc/data/njoy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/data/njoy.py b/openmc/data/njoy.py index 80817bf71a..b6fce5e3e1 100644 --- a/openmc/data/njoy.py +++ b/openmc/data/njoy.py @@ -358,7 +358,7 @@ def make_ace_thermal(filename, filename_thermal, temperatures=None, # Determine whether elastic is incoherent (0) or coherent (1) file_obj = StringIO(ev_thermal.section[7, 2]) - elastic_type = endf.get_head_record(file_obj)[2] + elastic_type = endf.get_head_record(file_obj)[2] - 1 else: elastic = 0 mt_elastic = 0