Re: How to compile Mopac 7.1 using g77 or gfortran



Jugoslav Dujic <jdujic@xxxxxxxxx> wrote:

Dr Ivan D. Reid wrote:
On Wed, 01 Oct 2008 23:31:17 -0500, Steven G. Kargl
<kargl@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote in <RPednVKmv_wI03nVnZ2dnUVZ_r3inZ2d@xxxxxxxxxxx>:

Fortran runtime error: Array reference out of bounds for array 'nallop',
lower bound of dimension 1 exceeded (-1077948016 < 1)

There was a problem with bounds checking with MOPAC 6, since it
used the old "convention" of specifying argument arrays of unknown length in
subroutines with size 1 -- this has probably carried over into the
later version. (Looking through my source, I see that I must have replaced
all of these declarations with a * at some point; I definitely remember
being bitten by it.)

Yeah, but...

...-1077948016 certainly does not look like a desired array index to
me -- much rather an uninitialized memory location, or an artefact
of an earlier type mismatch.

Also note that the message says it is the lower bound that is exceeded.
That's consistent with the index value being negative. It isn't what
you'd expect from the old f66 convention of using 1 for the upper bound
instead of the * that f66 didn't have.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: Singly Linked LIst and Objects Newbie Question
    ... like that the first element of a list has the index '0', ... Java arrays and implementations of java.util.List are zero-based in fact, not by convention. ... It is enough, though, that the fact of arrays and java.util.Lists is that they index from zero. ...
    (comp.lang.java.programmer)
  • java.util.prefs.Preferences and arrays
    ... multiple copies of each field (i.e. arrays). ... Is there a standard ... convention to fudge it? ...
    (comp.lang.java.programmer)
  • Re: Unsigned Indexing (was: some other sad story)
    ... >) convention of zero-based arrays, no matter whether they would track ... >) beauty queens or the temperature in Minsk, or Chicago. ... > arrays in C, and you don't need to do a lot of rewriting for it either. ...
    (comp.programming)
  • Re: C exe on winXP memory limitation
    ... precission integers are stores in arrays. ... the windows refuses to execute the program. ... Conventionally, #defines are given names in all capital letters, and variables are not given names with all capital letters. ... This is only a convention, but following it does make it easier for others to read your code. ...
    (comp.lang.c)
  • Re: question regarding diofantine equations
    ... quasi wrote: ... And, for the record, I prefer your convention to that of OP. ... Gerry Myerson ...
    (sci.math)