g95: reading more data than the record size (RECL)



I am trying to recompile some old .for code with g95. The binary runs
fine, but I need to make the arrays larger. When I compile (g95 -o
a.exe b.for) the program runs until it gags on reading an
'unformatted' file:

here's the code:

open(unit=12, file=zbot_file, form='unformatted', status='old')
call read_write(0, 12, id, ny, nx, y0, dy, x0, dx, zbot)
***
subroutine read_write(mode, lun, id, ncol, nrow, col1, delcol,
&row1, delrow, array)
dimension array(1), work(1000)
character id*56
character pgm*8
read(unit=lun) id, pgm, ncol, nrow, nz, col1, delcol, row1,
delrow

The last line above is the one for which it says:

UNIT 12 "100USGS.grd " Fortran runtime error: Reading more data
than the record size (RECL)

The record length, in another program that transforms files, appears
to be 128, and I tried that with recl=128, but get the same messages.

Any tips on how to get around this?

TIA
.



Relevant Pages

  • Re: g95: reading more data than the record size (RECL)
    ... but I need to make the arrays larger. ... When I compile (g95 -o ... &row1, delrow, array) ... character id*56 ...
    (comp.lang.fortran)
  • Re: Last Ninja Programming Language
    ... So when 88 unique variables just aren't enough (not including arrays). ... than just two character variable names. ... ``GOSUB MoveEnemy`` is much clearer than ``GOSUB 2770`` and ... labels that "compiled" such a program into compact BASIC V2. ...
    (comp.sys.cbm)
  • Re: Access one character in an array of characters
    ... > points but also display the cards of a particulier hand by suit. ... > To print out the values by rank I have used this while loop sequence: ... > the loop works it would display any character that is not the null ... raw arrays is not the 'OO way'. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: structure toupperlower?
    ... >> How can I use a for loop on a struct? ... > of which contains offset and size information for the struct members ... > The toupperand tolowerfunctions apply to a single character: ... > If you have a struct some of whose members are character arrays ...
    (comp.lang.c)
  • Re: What are SZ array?
    ... explanation of a much different meaning of the term. ... one-dimensional arrays of bytes, with each byte containing a character (or ... say of such a string that it was 'null-terminated'. ...
    (microsoft.public.dotnet.languages.csharp)