Fortran · File status code
What does IOSTAT 32 — Invalid Logical Unit Number mean in Fortran?
The unit number used in an I/O statement falls outside the range the runtime accepts (0 through roughly 2,147,483,647), most often because it's negative or was computed from an uninitialized or corrupted variable.
The unit number used in an I/O statement falls outside the range the runtime accepts (0 through roughly 2,147,483,647), most often because it's negative or was computed from an uninitialized or corrupted variable.
Trace where the unit number value comes from — a bad loop index, an uninitialized variable, or a typo — and make sure unit numbers are always small, well-defined constants or parameters.