C C There are a total of 7 entries in the algebraic variable array. C There are a total of 20 entries in each of the rate and state variable arrays. C There are a total of 33 entries in the constant variable array. C C C VOI is time in component environment (minute). C ALGBRC(1) is x1 in component x1 (molar). C STATES(1) is x2 in component x2 (molar). C CONSTS(1) is k1 in component reaction_constants (second_order_rate_constant). C CONSTS(2) is k_minus1 in component reaction_constants (first_order_rate_constant). C CONSTS(21) is k4 in component reaction_constants (first_order_rate_constant). C CONSTS(3) is k_minus4 in component reaction_constants (first_order_rate_constant). C CONSTS(22) is k_minus3 in component reaction_constants (second_order_rate_constant). C STATES(2) is x3 in component x3 (molar). C STATES(3) is x5 in component x5 (molar). C STATES(4) is x6 in component x6 (molar). C CONSTS(4) is PTP in component reaction_constants (molar). C CONSTS(5) is k3 in component reaction_constants (first_order_rate_constant). C STATES(5) is x4 in component x4 (molar). C CONSTS(23) is k2 in component reaction_constants (second_order_rate_constant). C CONSTS(24) is k_minus2 in component reaction_constants (first_order_rate_constant). C CONSTS(6) is k4b in component reaction_constants (first_order_rate_constant). C CONSTS(7) is k_minus4b in component reaction_constants (first_order_rate_constant). C STATES(6) is x7 in component x7 (molar). C STATES(7) is x8 in component x8 (molar). C ALGBRC(2) is k5 in component reaction_constants (rate). C CONSTS(8) is k_minus5 in component reaction_constants (first_order_rate_constant). C CONSTS(9) is k6 in component reaction_constants (second_order_rate_constant). C STATES(8) is x9 in component x9 (molar). C CONSTS(10) is k7 in component reaction_constants (first_order_rate_constant). C CONSTS(25) is k_minus7 in component reaction_constants (second_order_rate_constant). C STATES(9) is x10 in component x10 (molar). C CONSTS(11) is IRp in component reaction_constants (molar). C CONSTS(26) is k8 in component reaction_constants (second_order_rate_constant). C CONSTS(12) is k_minus8 in component reaction_constants (first_order_rate_constant). C STATES(10) is x11 in component x11 (molar). C STATES(11) is x12 in component x12 (molar). C STATES(12) is x13 in component x13 (percentage). C ALGBRC(3) is k9 in component reaction_constants (first_order_rate_constant). C CONSTS(27) is k_minus9 in component reaction_constants (second_order_rate_constant). C CONSTS(28) is k10 in component reaction_constants (first_order_rate_constant). C CONSTS(13) is k_minus10 in component reaction_constants (second_order_rate_constant). C STATES(13) is x14 in component x14 (percentage). C STATES(14) is x15 in component x15 (percentage). C CONSTS(14) is PTEN in component reaction_constants (molar). C CONSTS(15) is SHIP in component reaction_constants (molar). C STATES(15) is x16 in component x16 (percentage). C ALGBRC(4) is k11 in component reaction_constants (first_order_rate_constant). C CONSTS(29) is k_minus11 in component reaction_constants (first_order_rate_constant). C STATES(16) is x17 in component x17 (percentage). C STATES(17) is x18 in component x18 (percentage). C ALGBRC(5) is k12 in component reaction_constants (first_order_rate_constant). C CONSTS(30) is k_minus12 in component reaction_constants (first_order_rate_constant). C STATES(18) is x19 in component x19 (percentage). C STATES(19) is x20 in component x20 (percentage). C CONSTS(31) is k13 in component reaction_constants (first_order_rate_constant). C CONSTS(16) is k_minus13 in component reaction_constants (first_order_rate_constant). C ALGBRC(7) is k13b in component reaction_constants (first_order_rate_constant). C CONSTS(32) is k14 in component reaction_constants (first_order_rate_constant). C CONSTS(17) is k_minus14 in component reaction_constants (first_order_rate_constant). C STATES(20) is x21 in component x21 (percentage). C CONSTS(33) is k9_basal in component reaction_constants (first_order_rate_constant). C CONSTS(18) is k9_stimulated in component reaction_constants (first_order_rate_constant). C ALGBRC(6) is effect in component reaction_constants (dimensionless). C CONSTS(19) is APequil in component reaction_constants (dimensionless). C CONSTS(20) is PI3K in component reaction_constants (molar). C RATES(1) is d/dt x2 in component x2 (molar). C RATES(2) is d/dt x3 in component x3 (molar). C RATES(5) is d/dt x4 in component x4 (molar). C RATES(3) is d/dt x5 in component x5 (molar). C RATES(4) is d/dt x6 in component x6 (molar). C RATES(6) is d/dt x7 in component x7 (molar). C RATES(7) is d/dt x8 in component x8 (molar). C RATES(8) is d/dt x9 in component x9 (molar). C RATES(9) is d/dt x10 in component x10 (molar). C RATES(10) is d/dt x11 in component x11 (molar). C RATES(11) is d/dt x12 in component x12 (molar). C RATES(12) is d/dt x13 in component x13 (percentage). C RATES(13) is d/dt x14 in component x14 (percentage). C RATES(14) is d/dt x15 in component x15 (percentage). C RATES(15) is d/dt x16 in component x16 (percentage). C RATES(16) is d/dt x17 in component x17 (percentage). C RATES(17) is d/dt x18 in component x18 (percentage). C RATES(18) is d/dt x19 in component x19 (percentage). C RATES(19) is d/dt x20 in component x20 (percentage). C RATES(20) is d/dt x21 in component x21 (percentage). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 9e-13 CONSTS(1) = 6e7 CONSTS(2) = 0.2 CONSTS(3) = 0.003 STATES(2) = 0 STATES(3) = 0 STATES(4) = 1e-13 CONSTS(4) = 1 CONSTS(5) = 2500 STATES(5) = 0 CONSTS(6) = 2.1e-3 CONSTS(7) = 2.1e-4 STATES(6) = 0 STATES(7) = 0 CONSTS(8) = 1.67e-18 CONSTS(9) = 0.461 STATES(8) = 1e-13 CONSTS(10) = 4.16 STATES(9) = 1e-13 CONSTS(11) = 8.97e-13 CONSTS(12) = 10 STATES(10) = 1e-13 STATES(11) = 0 STATES(12) = 0.31 CONSTS(13) = 2.77 STATES(13) = 99.4 STATES(14) = 0.29 CONSTS(14) = 1 CONSTS(15) = 1 STATES(15) = 100 STATES(16) = 0 STATES(17) = 100 STATES(18) = 0 STATES(19) = 96 CONSTS(16) = 0.167 CONSTS(17) = 0.001155 STATES(20) = 4 CONSTS(18) = 1.39 CONSTS(19) = 9.09 CONSTS(20) = 5e-15 CONSTS(21) = CONSTS(3)/9.00000 CONSTS(22) = CONSTS(2)/1.00000 CONSTS(23) = CONSTS(1) CONSTS(24) = 100.000*CONSTS(2) CONSTS(25) = (2.50000/7.45000)*CONSTS(10) CONSTS(26) = (( CONSTS(12)*5.00000)/70.7750)*1.00000e+12 CONSTS(27) = (94.0000/3.10000)*CONSTS(18) CONSTS(28) = (3.10000/2.90000)*CONSTS(13) CONSTS(29) = 10.0000*log(2.00000)*1.00000 CONSTS(30) = 10.0000*log(2.00000)*1.00000 CONSTS(31) = (4.00000/96.0000)*CONSTS(16) CONSTS(32) = CONSTS(17)/96.0000 CONSTS(33) = (0.310000/99.4000)*CONSTS(27) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(6) = CONSTS(6)*STATES(5) - ( CONSTS(7)*STATES(6)+ CONSTS(9)*CONSTS(4)*STATES(6)) RATES(7) = CONSTS(6)*STATES(3) - ( CONSTS(7)*STATES(7)+ CONSTS(9)*CONSTS(4)*STATES(7)) RATES(8) = CONSTS(25)*CONSTS(4)*STATES(9) - ( CONSTS(10)*STATES(8)*(STATES(5)+STATES(3)))/CONSTS(11) RATES(9) = (( CONSTS(10)*STATES(8)*(STATES(5)+STATES(3)))/CONSTS(11)+ CONSTS(12)*STATES(11)) - ( CONSTS(25)*CONSTS(4)+ CONSTS(26)*STATES(10))*STATES(9) RATES(10) = CONSTS(12)*STATES(11) - CONSTS(26)*STATES(9)*STATES(10) RATES(11) = CONSTS(26)*STATES(9)*STATES(10) - CONSTS(12)*STATES(11) RATES(14) = CONSTS(13)*CONSTS(15)*STATES(12) - CONSTS(28)*STATES(14) ALGBRC(1) = TERNRY(VOI.LT.15.0000, 1.00000e-07, 0.00000) RATES(1) = ( CONSTS(2)*STATES(2)+ CONSTS(22)*CONSTS(4)*STATES(3)+ CONSTS(3)*STATES(4)) - ( CONSTS(1)*ALGBRC(1)*STATES(1)+ CONSTS(21)*STATES(1)) RATES(2) = CONSTS(1)*ALGBRC(1)*STATES(1) - ( CONSTS(2)*STATES(2)+ CONSTS(5)*STATES(2)) RATES(5) = ( CONSTS(23)*ALGBRC(1)*STATES(3)+ CONSTS(7)*STATES(6)) - ( CONSTS(24)*STATES(5)+ CONSTS(6)*STATES(5)) RATES(3) = ( CONSTS(5)*STATES(2)+ CONSTS(24)*STATES(5)+ CONSTS(7)*STATES(7)) - ( CONSTS(23)*ALGBRC(1)*STATES(3)+ CONSTS(22)*CONSTS(4)*STATES(3)+ CONSTS(6)*STATES(3)) ALGBRC(2) = TERNRY(STATES(4)+STATES(6)+STATES(7).GT.1.00000e-13, 10.0000*CONSTS(8), 60.0000*CONSTS(8)) RATES(4) = (ALGBRC(2)+ CONSTS(9)*CONSTS(4)*(STATES(6)+STATES(7))+ CONSTS(21)*STATES(1)) - ( CONSTS(8)*STATES(4)+ CONSTS(3)*STATES(4)) ALGBRC(3) = ( (CONSTS(18) - CONSTS(33))*STATES(11))/CONSTS(20)+CONSTS(33) RATES(12) = ( ALGBRC(3)*STATES(13)+ CONSTS(28)*STATES(14)) - ( CONSTS(27)*CONSTS(14)+ CONSTS(13)*CONSTS(15))*STATES(12) RATES(13) = CONSTS(27)*CONSTS(14)*STATES(12) - ALGBRC(3)*STATES(13) ALGBRC(4) = ( 0.100000*CONSTS(29)*(STATES(12) - 0.310000))/(3.10000 - 0.310000) RATES(15) = CONSTS(29)*STATES(16) - ALGBRC(4)*STATES(15) RATES(16) = ALGBRC(4)*STATES(15) - CONSTS(29)*STATES(16) ALGBRC(5) = ( 0.100000*CONSTS(30)*(STATES(12) - 0.310000))/(3.10000 - 0.310000) RATES(17) = CONSTS(30)*STATES(18) - ALGBRC(5)*STATES(17) RATES(18) = ALGBRC(5)*STATES(17) - CONSTS(30)*STATES(18) ALGBRC(6) = ( 0.200000*STATES(16)+ 0.800000*STATES(18))/CONSTS(19) ALGBRC(7) = (40.0000/60.0000 - 4.00000/96.0000)*CONSTS(16)*ALGBRC(6) RATES(19) = ( CONSTS(16)*STATES(20)+CONSTS(32)) - ( (CONSTS(31)+ALGBRC(7))*STATES(19)+ CONSTS(17)*STATES(19)) RATES(20) = - CONSTS(16)*STATES(20)+ (CONSTS(31)+ALGBRC(7))*STATES(19) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = TERNRY(VOI.LT.15.0000, 1.00000e-07, 0.00000) ALGBRC(2) = TERNRY(STATES(4)+STATES(6)+STATES(7).GT.1.00000e-13, 10.0000*CONSTS(8), 60.0000*CONSTS(8)) ALGBRC(3) = ( (CONSTS(18) - CONSTS(33))*STATES(11))/CONSTS(20)+CONSTS(33) ALGBRC(4) = ( 0.100000*CONSTS(29)*(STATES(12) - 0.310000))/(3.10000 - 0.310000) ALGBRC(5) = ( 0.100000*CONSTS(30)*(STATES(12) - 0.310000))/(3.10000 - 0.310000) ALGBRC(6) = ( 0.200000*STATES(16)+ 0.800000*STATES(18))/CONSTS(19) ALGBRC(7) = (40.0000/60.0000 - 4.00000/96.0000)*CONSTS(16)*ALGBRC(6) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END