110 likes | 258 Views
UTILITY PACKAGE. One-dimensional real arrays and two dimensional integer and real arrays are read by utility packages. There is no utility package for reading one-dimensional integer arrays. U2DINT module reads two-dimensional integer arrays. U1DREL module reads one-dimensional real arrays.
E N D
UTILITY PACKAGE • One-dimensional real arrays and two dimensional integer and real arrays are read by utility packages. • There is no utility package for reading one-dimensional integer arrays. • U2DINT module reads two-dimensional integer arrays. • U1DREL module reads one-dimensional real arrays. • U2DREL module reads two-dimensional real arrays. Utility
UTILITY PACKAGE Free-Format Control Records For Array Readers CONSTANT CNSTNT INTERNAL CNSTNT FMTIN IPRN EXTERNAL Nunit CNSTNT FMTIN IPRN OPEN/CLOSE FNAME CNSTNT FMTIN IPRN • CONSTANT, INTERNAL, EXTERNALandOPEN/CLOSEare key words. • OPEN/CLOSE file (FNAME) can only contain a single array, and the file should not be included in the Name File. Utility
UTILITY PACKAGE CNSTNT • Is a real number for U2DREL and U1DREL and an integer for U2DINT. • For an array defined by CONSTANT, CNSTNT is the constant value. • For arrays defined by INTERNAL, EXTERNAL, or OPEN/CLOSE, CNSTNT multiplies the array values after they are read. Utility
UTILITY PACKAGE FMTIN • Is the format for reading are elements. • It contains 20 characters or less. • The format maybe: • Standard format enclosed in parentheses (e.g. (7F4.2)), • A (FREE), which indicates a free format, or • A (BINARY), which indicates unformatted data. • A (FREE) or (BINARY) can only be specified in free-format control records (not in fixed format arrays) • The (BINARY) can only be specified when using U2DREL or U2DINT, and only when EXTERNAL or OPEN/CLOSE is used. Utility
UTILITY PACKAGE IPRN • A flag to indicate that the array should be printed (in listing file). • The print format differs for each of the 3 array reading modules Utility
UTILITY PACKAGE Nunit • Is the unit for reading the array when the EXTERNAL free format control record is used. FNAME • File name when the OPEN/CLOSE free format control record is used. Utility
UTILITY PACKAGE • The above examples use free-format control records for reading an array. • The array in each example has 4 rows and 7 columns. Utility
UTILITY PACKAGE • ULSTRDmodule reads list that are any number of repetitions of an input item that contain multiple variables (e.g. Drain, River, Well and General-Head Boundary Packages). Utility
UTILITY PACKAGE IN—is the unit number for a file from which the list is read. The name of the file associated with this file unit must be included in the Name File, and its file type must be DATA in the name file. FNAME—is the name of the file to be read. This file will be opened on unit 99 just before reading the list and closed immediately after the list is read. This file should not be included in the Name File. Utility
UTILITY PACKAGE Scale—is a scale factor that is multiplied times the value of one or more variables within every record of the list. The input instructions that define the list that is read by ULSTRD should specify the variable to which SFAC applies. If item 2 is not included, Scale is 1.0 If item 2 is included, it must begin with the keyword SFAC. The values of the list variables that are printed in the List File include the effect of scale. Utility
UTILITY PACKAGE LIST—is a specified number of lines of data in which each line contains a specified number of variables. The first three variables are always layer, row ,column. The other fields vary according to the calling package. Utility