Laserfiche WebLink
<br />10. MEMORY MANAGEMENT <br />In this version of HEC-2, the unlabeled (blank) common area is <br />reused by various sections of the program. The upper limit for core <br />storage may be controlled by the size of the array SAVE in subprograms <br />SUMPO, MAPIT, QVAR, and SAVEIT. It has been set to produce a program <br />that will execute in about 32K words without overlaying, provided <br />that the computer word is of sufficient length to hold one real <br />(floating point) number. Storage requirements are also a function of <br />the machine itself, the compiler, and the system library. The program <br />size may be easily modified to make more efficient use of available <br />memory by changing only five cards as explained below. <br />The size of the SAVE array in these four subprograms may be <br />adjusted depending on computer system needs without affecting the <br />logical functioning of the program. There may, however, be a sub- <br />stantial change in the program's I/O activity for very large jobs <br />and hence in its efficiency and cost of operation. Array SAVE is <br />used as a buffer space between the file containing the computer <br />results (Unit 95), and the summary output tables. If SAVE is made <br />small, many passes through Unit 95 may be required to generate the <br />requested summary tables. If the array is large, only one pass <br />through Unit 95 may be required. The array SAVE in the program <br />supplied by The Hydrologic Engineering Center is dimensioned for (6310). <br />Program I/O activity is a function of the total number of <br />different variables needed to printout the summary tables requested, <br />the number of profiles to be summarized, and the number of cross sections <br />used. The program deter~ines which of the 65 available variables <br />will actually be needed to produce the tables requested, multiplies <br />the number of required variables times the number of profiles in <br />31 <br />