Fatal error entry 2 is not monotonically increasing

  • Thread starter Thread starter khary23
  • Start date Start date
  • Tags Tags
    Error Increasing
Click For Summary

Discussion Overview

The discussion revolves around an error encountered in a code related to energy spectrum input, specifically within the MCNP software. Participants explore potential formatting issues and share experiences with error messages in MCNP, as well as debugging strategies.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant reports a fatal error indicating that entry 2 is not monotonically increasing, despite their belief that the values are correct.
  • Another participant points out a potential formatting issue with the SI3 entry, suggesting that the space before the equal sign should be removed.
  • There is a mention of a mismatch in the number of entries between SI3 and SP3, which could contribute to the error.
  • A participant shares a personal experience with confusing error messages in MCNP, highlighting a specific error related to internal limits that are not well-documented.
  • Debugging strategies are discussed, including cutting down the model to isolate the source of the error.
  • Participants express the challenges of working with MCNP, noting its complexity and the difficulty in diagnosing certain errors.
  • There is a mention of the MCNP mailing list as a potential resource for assistance, requiring registration with RSICC.
  • One participant expresses a desire to help with a TMESH question but admits to not having experience with it.
  • A later reply inquires about the use of FMESH in spherical coordinates.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the cause of the error, and multiple competing views regarding formatting and debugging strategies are presented. The discussion remains unresolved regarding the specific issue at hand.

Contextual Notes

Participants note limitations in documentation and the complexity of the MCNP code, which may contribute to the confusion surrounding error messages and debugging processes.

khary23
Messages
92
Reaction score
6
I am trying a different energy spectrum in a code I am writing and get the following error when I try to run the it.

0.61247 0.88454
fatal error entry 2 of si 3 is not monotonically increasing

This has me confused because the two values above are monotonically increasing as are the preceding values. Is there a formatting or syntax issue that I am missing?
 

Attachments

Last edited:
Engineering news on Phys.org
I can't open the .txt file.
 
FactChecker said:
I can't open the .txt file.

Strange I just opened it on my phone.
 
Heh, you could have mentioned at some point it was MCNP. 🤪

Two things:

SI3 = 0 0.06149 0.063 0.06512 0.06683 0.07108 0.07141

The space between SI3 and = should not be there. You are better off using the form with no = at all.

Next, the number of entries on SI3 does not match the number on SP3.
 
I noticed the SI3 issue right after I posted, but the space with the equal sign...who knew.
 
  • Like
Likes   Reactions: DEvens
khary23 said:
I noticed the SI3 issue right after I posted, but the space with the equal sign...who knew.

MCNP is a huge code with a lot of history. And there are many competing incentives for where development and documentation effort is expended. The result is, a significant number of really weird things. It's by no means the only error message that is difficult to diagnose.

The most annoying one I have found so far is an error message that arises when certain internal limits are exceeded. These are not limits that the code advertises, but somewhere inside there is an array or a depth or something that is exceeded. The error message is something about a degenerate torus. I *think* it's because the code has some kind of resource leak or not-properly-cleaned-up pointer or something, and this is the first error message in a group of messages. This error message can occur even in an input with no torus surface. But the worst part for me was, it first showed up in my work when I did add a torus to the model. And my torus was deliberately degenerate. So I wasted several days hunting through 50,000 lines of MCNP input trying to figure out what was wrong. Sigh.

Eventually you are forced to fall back on old-time debugging. Cut out half the model and see if the error goes away. Then put the first half back and cut out the second half. And then cut out half the remaining error-showing part, and so on until you reduce it down to three or four lines. Then you just have to nudge-and-poke. It can be very annoying, time consuming, and budget damaging.

Wait until you get lost particles because you tried to make a pizza-slice division of a cylinder. I was working on a project that had three bundles in a channel in 120 degree sectors. It was modeled as three equal wedges meeting at the center. And it lost particles quite often. That wasted a bunch of time.

The MCNP mailing list can be helpful. You need to be registered with RSICC to be on that mailing list. Just as here, it's all volunteers. Though sometimes you get actual MCNP developers answering.
 
  • Like
Likes   Reactions: khary23
By the way, I wish I could help with your TMESH question on the other thread, but I have never used TMESH.
 
DEvens said:
By the way, I wish I could help with your TMESH question on the other thread, but I have never used TMESH.

No worries, thank you for all of your help by the way!

can one use FMESH in spherical coordinates?
 
I requested to be on the mailing list
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 11 ·
Replies
11
Views
11K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
6
Views
7K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
3
Views
3K