# NJOY error when trying to make\_ace() for 6-C-13g.jeff33 and 8-O-17g.jeff33

**URL:** <https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555>\
**Category:** User Support\
**Created:** [July 11, 2024, 8:30pm UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555 "2024-07-11T20:30:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frozaccio](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Frozaccio](https://openmc.discourse.group/u/Frozaccio)\
**Post date:** [July 11, 2024, 8:30pm UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/1 "2024-07-11T20:30:08Z")

</div>

Dear OpenMCers,

I use the code to generate ACE files from JEFF3.3.  
There is no issue, everything is smooth except for 2 radionuclides 6-C-13g.jeff33 and 8-O-17g.jeff33  
Unfortunately, njoy does not provide anything more than “Command ‘/usr/local/NJOY2016/install/bin/njoy’ returned non-zero exit status 77.”

I have been digging a bit and extracted the input used for those two radionuclides, below:

**For 6-C13**

```auto
reconr / %%%%%%%%%%%%%%%%%%% Reconstruct XS for neutrons %%%%%%%%%%%%%%%%%%%%%%%
20 21
'JEFF-3.3 PENDF for 6-C - 13 '/
628 2/
0.001/ err
'JEFF-3.3: 6-C - 13 '/
'Processed by NJOY'/
0/

broadr / %%%%%%%%%%%%%%%%%%%%%%% Doppler broaden XS %%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 21 22
628 1 0 0 0. /
0.001/ errthn
293
0/

heatr / %%%%%%%%%%%%%%%%% Add heating kerma (local photons) %%%%%%%%%%%%%%%%%%%%
20 22 23 /
628 4 0 0 1 /
302 318 402 444 /

heatr / %%%%%%%%%%%%%%%%%%%%%%%%% Add heating kerma %%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 22 24 /
628 4 0 0 0 /
302 318 402 444 /

gaspr / %%%%%%%%%%%%%%%%%%%%%%%%% Add gas production %%%%%%%%%%%%%%%%%%%%%%%%%%%
20 24 25 /

purr / %%%%%%%%%%%%%%%%%%%%%%%% Add probability tables %%%%%%%%%%%%%%%%%%%%%%%%%
20 25 26 /
628 1 1 20 64 /
293
1.e10
0/

acer / %%%%%%%%%%%%%%%%%%%%%%%% Write out in ACE format %%%%%%%%%%%%%%%%%%%%%%%%
20 26 0 27 28
1 0 1 .01 /
'JEFF-3.3: 6-C - 13 at 293'/
628 293
1 1 1/
/
stop

```

**For 8-O-17**

```auto
reconr / %%%%%%%%%%%%%%%%%%% Reconstruct XS for neutrons %%%%%%%%%%%%%%%%%%%%%%%
20 21
'JEFF-3.3 PENDF for 8-O - 17 '/
828 2/
0.001/ err
'JEFF-3.3: 8-O - 17 '/
'Processed by NJOY'/
0/

broadr / %%%%%%%%%%%%%%%%%%%%%%% Doppler broaden XS %%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 21 22
828 1 0 0 0. /
0.001/ errthn
293
0/

heatr / %%%%%%%%%%%%%%%%% Add heating kerma (local photons) %%%%%%%%%%%%%%%%%%%%
20 22 23 /
828 4 0 0 1 /
302 318 402 444 /

heatr / %%%%%%%%%%%%%%%%%%%%%%%%% Add heating kerma %%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 22 24 /
828 4 0 0 0 /
302 318 402 444 /

gaspr / %%%%%%%%%%%%%%%%%%%%%%%%% Add gas production %%%%%%%%%%%%%%%%%%%%%%%%%%%
20 24 25 /

purr / %%%%%%%%%%%%%%%%%%%%%%%% Add probability tables %%%%%%%%%%%%%%%%%%%%%%%%%
20 25 26 /
828 1 1 20 64 /
293
1.e10
0/

acer / %%%%%%%%%%%%%%%%%%%%%%%% Write out in ACE format %%%%%%%%%%%%%%%%%%%%%%%%
20 26 0 27 28
1 0 1 .01 /
'JEFF-3.3: 8-O - 17 at 293'/
828 293
1 1 1/
/
stop

```

Anyway I do not know how to use those inputs with NJOY outside of openmc maybe someone could give some hints so that I can test and see if there is more details about the error or maybe someone knows how to solve the C13 and O17 issues?

By the way, with STDOUT=True, here is what the process displays:

```auto

 njoy 2016.69 07Feb22 07/11/24 13:33:37
 *****************************************************************************

 reconr... 0.0s

 ---message from rdf2bw---calculation of angular distribution not installed.

 broadr... 0.0s

 heatr... 0.1s

 ---message from hinit---mf6, mt102 does not give recoil za= 6014
                          photon momentum recoil used.

 ***error in sixbar*** awp is zero for for mt 29 particle 2005

STOP 77
ERROR: Command '/usr/local/NJOY2016/install/bin/njoy' returned non-zero exit status 77.

 njoy 2016.69 07Feb22 07/11/24 13:33:38
 *****************************************************************************

 reconr... 0.0s

 ---message from rdf2bw---calculation of angular distribution not installed.

 broadr... 0.1s

 heatr... 0.1s

 ---message from hinit---mf6, mt102 does not give recoil za= 8018
                          photon momentum recoil used.

 ***error in sixbar*** awp is zero for for mt109 particle 2006

STOP 77
ERROR: Command '/usr/local/NJOY2016/install/bin/njoy' returned non-zero exit status 77.

```

---

<div class="post-metadata">

**Author:** ![Frozaccio](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Frozaccio](https://openmc.discourse.group/u/Frozaccio)\
**Post date:** [July 16, 2024, 3:19am UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/2 "2024-07-16T03:19:30Z")

</div>

From NJOY2016 forum, I was told that is because it is missing the AWP for He-5 and He-6 in the nuclear evaluation. I corrected it in the endf file and it solved the problem. I find this strange because I downloaded the evaluation from [https://www.oecd-nea.org/dbdata/JEFF33/](https://www.oecd-nea.org/dbdata/JEFF33/) and I am certainly not the first one to process it hence, to find this issue.

Related to this, are the parameters used by make\_ace() function to produce ace files similar to those used to produce MCNP files ?

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [July 18, 2024, 3:28pm UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/3 "2024-07-18T15:28:04Z")

</div>

@Frozaccio I ran into the same thing when processing JEFF 3.3 and also concluded it was an error in the evaluation itself. The processed JEFF 3.3 library for OpenMC that I generated is available at [Official Data Libraries | OpenMC](https://openmc.org/official-data-libraries). My approach for these two nuclides was to replace them with newer evaluations from TENDL-2019 (the original ones in JEFF 3.3 actually were borrowed from TENDL-2015).

---

<div class="post-metadata">

**Author:** ![yrrepy](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/yrrepy/32/2365_2.png) [@yrrepy](https://openmc.discourse.group/u/yrrepy)\
**Post date:** [July 18, 2024, 4:41pm UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/4 "2024-07-18T16:41:25Z")

</div>

Hi Paul,

there can be quite a bit of difference between TENDL-year evaluations.  
Indeed I just looked at O-17 mt=1 and mt=2, for TENDL-2015 and TENDL-2019, they are quite different (factor 2x difference).

If trying to reproduce JEFF 3.3 as closely as possible, it would make more sense to draw on TENDL-2015, no? (unless if there is some other processing error occurring there)  
This would be particularly important for benchmarking, ICSBEP, etc.

Otherwise, yeah these are minor importance nuclides.

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [July 18, 2024, 5:22pm UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/5 "2024-07-18T17:22:59Z")

</div>

@yrrepy Yes, it would probably make more sense to draw on JEFF 3.3. In a perfect world, the evaluators would have published an errata for those nuclides so that users have something “official” to use rather than make their own modifications to the files just to get them processed correctly.

---

<div class="post-metadata">

**Author:** ![KUNG](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/kung/32/3725_2.png) [@KUNG](https://openmc.discourse.group/u/KUNG)\
**Post date:** [August 26, 2025, 8:15am UTC](https://openmc.discourse.group/t/njoy-error-when-trying-to-make-ace-for-6-c-13g-jeff33-and-8-o-17g-jeff33/4555/6 "2025-08-26T08:15:40Z")

</div>

Thanks for this info. Do you happen to remember how you modified the endf file exactly?  
My guess was the following for the file modification, but in the end i did not try/dare it and went the processing route via the ACE files with from\_ace() and add\_temperature\_from\_ace(). I do not have the 2500K though (max T was 1800K here: [JEFF-3.3](https://www.oecd-nea.org/dbdata/jeff/jeff33/index.html#neutrons) )

6.013000+3 1.289165+1 0 3 4 0 628 6 29 1  
2005.00 5.000000+0 0 0 0 0 628 6 29 2  
2006.00 6.000000+0 0 0 0 0 628 6 29 3  
1.000000+0 1.000000+0 0 1 1 2 628 6 29 4
