Fortran FORTRAN - Error 112 Run-time Error

  • Thread starter Thread starter Athos_F
  • Start date Start date
  • Tags Tags
    Error Fortran
AI Thread Summary
The discussion centers on a recurring run-time error encountered during simulations of a lattice model, specifically when scaling up from small to larger systems. The error message indicates a reference to an undefined variable, suggesting that some elements of an array may not have been properly initialized. It occurs approximately 0.5% of the time during longer simulations, which last about 15 minutes. Recommendations include double-checking array sizes and ensuring that all variables, including arrays, are initialized at the beginning of the simulation to prevent such errors.
Athos_F
Messages
1
Reaction score
0
I have strange situation where a code that generaly seems to work fine at times gives a error message.

Basicly I run simulations on a lattice model, and have experience no problems for small system, but when I go to larger systems (meaning that the simulation takes aprox. 15 min) I sometimes get into problem. To average my results I run each simulation a given number of times, and it seems that in around 0.5 % of the time my largest model gives the following error.

Run-time Error
*** Error 112, Reference to undefined variable, array element or function result (/UNDEF).

The line it conects to the problem is well defined, and should not be the problem.

Anyone know way?
 
Technology news on Phys.org
This error indicates that you are trying to use elemnts of an array without assigning a value for them. Double check the array sizes .

Also I would recommend initializing all your variables (including arrays) at the begininig of your simulation.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
6
Views
3K
Replies
4
Views
2K
Replies
5
Views
3K
Replies
9
Views
2K
Replies
3
Views
8K
Replies
70
Views
5K
Replies
8
Views
4K
Back
Top