1 / 11

UTILITY PACKAGE

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.

mandyn
Download Presentation

UTILITY PACKAGE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

More Related