Opened 17 years ago

Closed 17 years ago

#64 closed bug (Fixed)

Invalid Fortran unit numbers in inp_par.F

Reported by: m.hadfield Owned by: arango
Priority: minor Milestone: Release ROMS/TOMS 3.1
Component: Nonlinear Version: 3.1
Keywords: Cc:

Description

In inp_par.F, lines 242 through 292, there is a series of OPEN statements to open biology, sediment, assimilation, float and stations parameters, using Fortran unit numbers 100, 200 ... 500. On a Cray T3E, unit number 100 is not allowed; the error message reads "The unit number (100) in the OPEN statement must be nonnegative and outside the range of 100 through 102." Other compilers have their own restrictions on unit numbers, eg. my Compaq Visual Fortran for Windows manual tells me that the numbers must be in the range 0 through 119. I *think* the Fortran standard restricts unit numbers to the range 1 through 99 (but the standard document costs US$140, so I haven't checked).

So I suggest the unit numbers in this part of the code be made smaller. I attach a version of the file in which they are set to 15, 25 ... 55.

Change History (2)

comment:1 by m.hadfield, 17 years ago

My attempt to add the attachment failed because the size exceeded 262144 bytes. (Isn't inp_par.F getting a little large these days!) Anyway, I'm sure you get the idea.

comment:2 by arango, 17 years ago

Resolution: Fixed
Status: newclosed
Note: See TracTickets for help on using tickets.