C C There are a total of 0 entries in the algebraic variable array. C There are a total of 4 entries in each of the rate and state variable arrays. C There are a total of 9 entries in the constant variable array. C C C VOI is time in component environment (day). C CONSTS(1) is lambda in component uninfected (first_order_rate_constant). C CONSTS(2) is d in component uninfected (first_order_rate_constant). C CONSTS(3) is beta in component infected (first_order_rate_constant). C STATES(1) is v in component virus (dimensionless). C STATES(2) is x in component uninfected (dimensionless). C CONSTS(4) is a in component infected (first_order_rate_constant). C CONSTS(5) is p in component infected (first_order_rate_constant). C STATES(3) is z in component CTL (dimensionless). C STATES(4) is y in component infected (dimensionless). C CONSTS(6) is k in component virus (first_order_rate_constant). C CONSTS(7) is u in component virus (first_order_rate_constant). C CONSTS(8) is c in component CTL (first_order_rate_constant). C CONSTS(9) is b in component CTL (first_order_rate_constant). C RATES(2) is d/dt x in component uninfected (dimensionless). C RATES(4) is d/dt y in component infected (dimensionless). C RATES(1) is d/dt v in component virus (dimensionless). C RATES(3) is d/dt z in component CTL (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 1 CONSTS(2) = 0.01 CONSTS(3) = 0.02 STATES(1) = 10 STATES(2) = 100 CONSTS(4) = 0.5 CONSTS(5) = 1 STATES(3) = 1 STATES(4) = 0 CONSTS(6) = 1 CONSTS(7) = 1 CONSTS(8) = 1 CONSTS(9) = 0.05 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(2) = (CONSTS(1) - CONSTS(2)*STATES(2)) - CONSTS(3)*STATES(2)*STATES(1) RATES(4) = ( CONSTS(3)*STATES(2)*STATES(1) - CONSTS(4)*STATES(4)) - CONSTS(5)*STATES(4)*STATES(3) RATES(1) = CONSTS(6)*STATES(4) - CONSTS(7)*STATES(1) RATES(3) = CONSTS(8)*STATES(4)*STATES(3) - CONSTS(9)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END