Laserfiche WebLink
<br />001273 <br /> <br />2. LAYOUT OF THE MODEL <br /> <br />2.1 Descriptions of the Main Program, Subroutines, and Func- <br />tions <br /> <br />This section of the manual. contains a brief description of <br />the main program and each subroutine and function. The sub- <br />routines and functions are listed in alphabetical order, the <br />way they appear in the program. <br /> <br />CRSM <br /> <br />ABNORM <br /> <br />ACCUMUL <br /> <br />AF <br /> <br />APPOR <br /> <br />CHMTT <br /> <br />COMENTS <br /> <br />CPFLO <br /> <br />CREATIS <br /> <br />OEM <br /> <br />CRSM is the name of the main program. The main <br />program controls progression through the entire <br />program by calling the major subroutines at the <br />proper times and keeping track of the month, <br />year, and run being processed. <br /> <br />Subroutine ABNORM prints error messages for cer- <br />tain types of errors flagged in other subrou- <br />tines. <br /> <br />Subroutine ACCUMUL accumulates data selected for <br />output to TAPEDIT and writes it to a random ac- <br />cess mass storage file every 5 years. <br /> <br />Function AF converts values from ft3/s to <br />acre-ft. It also contains3entry point CFS to <br />convert from acre-ft to ft Is. <br /> <br />Subroutine APPOR determines and apportions sur- <br />pluses or shortages to special demands in the <br />lower basin. The subroutine declares a short- <br />age, normal, or surplus condition which remains <br />in effect for 1 year (unless changed in SURPLUS <br />due to a flood release). <br /> <br />Subroutine CHMTT stores lagged return flows and <br />salt concentrations and returns them to the river <br />at the end of the lagging period. (NOT TESTED) <br /> <br />Subroutine COMENTS prints the comment messages <br />generated during the run. <br /> <br />Subroutine CPFLO computes the flow corresponding <br />to a specific probability level for the surplus <br />strategy_ <br /> <br />Subroutine CREATIS creates an Index Sequential <br />Mass storage File. <br /> <br />Subroutine OEM computes the diversion and con- <br />sumptive use for each month of the year, for de- <br />mands that are trended. It is called at the be- <br />ginning of each year. (Note that program SMDID <br />sends all data to CRSM in a trended demand format <br /> <br />5 <br />