Subject: Root Disease Model output
Name: Lance R. David
Date: 03/26/2015
Variants affected: BM, CI, CR, EC, EM, IE, KT, NC, PN, SO, TT, UT, WC, WS

Description: Western Root Disease model modified to use the General Report
             Writer facility and to send output disease summary and reports
             (summary, detailed, and bark beetle mortality) to a output
             database. A correction was made to the bark beetle mortality
             report where stand level TPA mortality was not properly weighted
             to represent diseased stand area and uninfected stand area as a
             total stand area mortality TPA value.
             
             This update includes the addition of three new Database Extension
             keywords: RDSum, RDBBMort, RDDetail.

             Root disease summary and bark beetle mortality reports used to
             have options to generate seperate external text files. The option
             to send these reports directly to the output database has replaced
             capability.

Impact on users: Additional output options and corrected value in the 
                 bark beetle mortality report.

Files:

rd\src\

rdbout.f    - added calls to GETID and GETLUN. Added report ID to write 
              and format statements for RD bark beetle mortality report.
            - added call to DBSRD3 to write output to database.
            - Summation for TOTSPC corrected to properly weight inside
              and outside disease area values for total stand representation.
            - Auxiliary flat file from BBOUT keyword no longer available. This
              report now available in output DB.
              
RDCOM.F77   - added IDRDOUT array, report ID's

rdin.f      - BBOUT keyword: removed field 1 and modified written text.
rdinbm.f      RRDOUT keyword: modified written text.
rdinca.f
rdinci.f
rdincr.f
rdinec.f
rdinem.f
rdinie.f
rdinso.f
rdintt.f
rdinut.f
rdinws.f

rdinit.f    - added initialization of IDRDOUT array 
rdinitca.f

rdpr.f      - added calls to GETID and GETLUN. Added report ID to write 
              and format statements for RD summary report.
            - added call to DBSRD1 to write output to database.

rddout.f    - added calls to GETID and GETLUN. Added report ID to write 
              and format statements for RD detailed report.
              added call to DBSRD2 to write output to database.

rdrout.f    - This subroutine is now obsolete and no longer used.

base/src/fvs.f - Removed call to RDROUT because RD summary and detailed
                 reports now handled by GENPRT.
                 
dbs/src/dbsrd.f - New file with multiple subroutines for writing Root Disease
                  model reports to database.
                  DBSRD1 - Root Disease Area Summary (FVS_RD_SUM)
                  DBSRD2 - ROOT Disease Area Detail (FVS_RD_DETAIL)
                  DBSRD3 - RD Bark Beetle Mortality TPA (FVS_RD_BEETLE)

dbs/src/DBSCOM.F77 - Added RD model DB output control variables IRD1, IRD2, IRD3
                     to DBSCOM common area.

dbs/src/dbsinit.f - Added RD model DB output control variables
                    IRD1, IRD2 and IRD3 initialization.

dbs/src/dbsppget.f - Added RD model DB output control variables IRD1, IRD2, IRD3.

dbs/src/dbsppput.f - Added RD model DB output control variables IRD1, IRD2, IRD3.

dbs/src/dbsin.f - Added RD model DB output control keywords RDSUM, RDDETAIL and RDBBMORT.
