MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
This module contains the LongLineReaderType. More...
Data Types | |
type | longlinereadertype |
LongLineReaderType. More... | |
Functions/Subroutines | |
subroutine | rdcom (this, iu, iout, line, ierr) |
Return the first non-comment line. More... | |
subroutine | bkspc (this, iin) |
Emulate a Fortran backspace. More... | |
The LongLineReader is a utility for reading text lines from mf6 input files. It calls u9rdcom (which calls get_line) to read the first non-commented line of an input file. The LongLineReader can emulate the Fortran backspace command by calling the bkspc method, which stores the current line in last_line, and will return last_line upon the next call to rdcom. The LongLineReader was implemented to replace all Fortran backspace calls, due to a bug in ifort and ifx that prevented the backspace command from working properly with non-advancing IO.
|
private |
Emulate a fortran backspace call by storing the current line in long_line
Definition at line 102 of file LongLineReader.f90.
|
private |
Skip through any comments and return the first non-commented line. If an end of file was encountered previously, then return a blank line. If a backspace was called prior to this call, then do not read a new line and return last_line instead.
Definition at line 59 of file LongLineReader.f90.