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 7 entries in the constant variable array. C C C VOI is time in component environment (month). C STATES(1) is L in component L (fraction). C CONSTS(1) is mu_T in component reaction_constants (month). C CONSTS(2) is mu_L in component reaction_constants (month). C CONSTS(3) is mu_A in component reaction_constants (month). C CONSTS(4) is epsilon in component reaction_constants (first_order_rate_constant). C STATES(2) is M in component M (fraction). C STATES(3) is T in component T (fraction). C CONSTS(5) is L_0 in component L (dimensionless). C STATES(4) is A in component A (fraction). C CONSTS(6) is A_0 in component A (dimensionless). C CONSTS(7) is T_0 in component T (dimensionless). C RATES(1) is d/dt L in component L (fraction). C RATES(4) is d/dt A in component A (fraction). C RATES(3) is d/dt T in component T (fraction). C RATES(2) is d/dt M in component M (fraction). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.33 CONSTS(1) = 2.4 CONSTS(2) = 2 CONSTS(3) = 3.6 CONSTS(4) = 0 STATES(2) = 0 STATES(3) = 0.33 STATES(4) = 0.34 CONSTS(5) = CONSTS(2)/(CONSTS(3)+CONSTS(1)+CONSTS(2)) CONSTS(6) = CONSTS(3)/(CONSTS(3)+CONSTS(1)+CONSTS(2)) CONSTS(7) = CONSTS(1)/(CONSTS(3)+CONSTS(1)+CONSTS(2)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( (1.00000/CONSTS(1))*STATES(3) - (1.00000/CONSTS(2))*STATES(1))+ CONSTS(4)*STATES(2) RATES(4) = (1.00000/CONSTS(2))*STATES(1) - (1.00000/CONSTS(3))*STATES(4) RATES(3) = (1.00000/CONSTS(3))*STATES(4) - (1.00000/CONSTS(1))*STATES(3) RATES(2) = CONSTS(4)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END