Generated Code
The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
C C There are a total of 35 entries in the algebraic variable array. C There are a total of 19 entries in each of the rate and state variable arrays. C There are a total of 40 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is q_RB1_inactive in component environment (fmol). C STATES(2) is q_L_RB1_inactive in component environment (fmol). C STATES(3) is q_LB1_ode in component environment (fmol). C ALGBRC(1) is q_LB1_stim in component environment (fmol). C ALGBRC(4) is q_LB1 in component environment (fmol). C STATES(4) is q_RB1 in component environment (fmol). C STATES(5) is q_Gs in component environment (fmol). C STATES(6) is q_RB1_Gs in component environment (fmol). C STATES(7) is q_L_RB1 in component environment (fmol). C STATES(8) is q_L_RB1_Gs in component environment (fmol). C STATES(9) is q_Gsa_GTP in component environment (fmol). C STATES(10) is q_Gsbetagamma in component environment (fmol). C STATES(11) is q_Gsa_GDP in component environment (fmol). C STATES(12) is q_GTP in component environment (fmol). C STATES(13) is q_GDP in component environment (fmol). C STATES(14) is q_Pi in component environment (fmol). C STATES(15) is q_RB1_tag in component environment (fmol). C STATES(16) is q_L_RB1_tag in component environment (fmol). C STATES(17) is q_RB1_GRKArr in component environment (fmol). C STATES(18) is q_L_RB1_GRKArr in component environment (fmol). C STATES(19) is q_GRKArr in component environment (fmol). C CONSTS(1) is stimSt in component environment (second). C CONSTS(2) is stimDur in component environment (second). C CONSTS(3) is tR in component environment (second). C CONSTS(4) is stimMag in component environment (fmol). C CONSTS(5) is stimHolding in component environment (fmol). C CONSTS(39) is m in component environment (fmol_per_sec). C ALGBRC(25) is v_Rswitch_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(26) is v_LRswitch_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(27) is v_C_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(28) is v_R_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(29) is v_L_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(30) is v_Act1_Gs in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(31) is v_Act2_Gs in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(32) is v_Hyd_Gs in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(34) is v_Reassoc_Gs in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(33) is v_InternR_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C ALGBRC(35) is v_InternLR_B1 in component GPCR_B1AR_reduced (fmol_per_sec). C CONSTS(40) is v_Rsynthesis in component environment (fmol_per_sec). C ALGBRC(2) is conserv_R_T in component environment (fmol). C ALGBRC(6) is conserv_L_T in component environment (fmol). C ALGBRC(3) is conserv_G_T in component environment (fmol). C CONSTS(6) is kappa_Rswitch_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(7) is kappa_LRswitch_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(8) is kappa_C_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(9) is kappa_R_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(10) is kappa_L_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(11) is kappa_Act1_Gs in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(12) is kappa_Act2_Gs in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(13) is kappa_Hyd_Gs in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(14) is kappa_Reassoc_Gs in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(15) is kappa_InternR_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(16) is kappa_InternLR_B1 in component GPCR_B1AR_reduced_parameters (fmol_per_sec). C CONSTS(17) is K_RB1_inactive in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(18) is K_L_RB1_inactive in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(19) is K_LB1 in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(20) is K_RB1 in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(21) is K_Gs in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(22) is K_RB1_Gs in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(23) is K_L_RB1 in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(24) is K_L_RB1_Gs in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(25) is K_Gsa_GTP in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(26) is K_Gsbetagamma in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(27) is K_Gsa_GDP in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(28) is K_GTP in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(29) is K_GDP in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(30) is K_Pi in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(31) is K_RB1_tag in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(32) is K_L_RB1_tag in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(33) is K_RB1_GRKArr in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(34) is K_L_RB1_GRKArr in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(35) is K_GRKArr in component GPCR_B1AR_reduced_parameters (per_fmol). C CONSTS(36) is R in component constants (J_per_K_per_mol). C CONSTS(37) is T in component constants (kelvin). C ALGBRC(5) is mu_RB1_inactive in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(7) is mu_L_RB1_inactive in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(8) is mu_LB1 in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(9) is mu_RB1 in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(10) is mu_Gs in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(11) is mu_RB1_Gs in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(12) is mu_L_RB1 in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(13) is mu_L_RB1_Gs in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(14) is mu_Gsa_GTP in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(15) is mu_Gsbetagamma in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(16) is mu_Gsa_GDP in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(17) is mu_GTP in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(18) is mu_GDP in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(19) is mu_Pi in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(20) is mu_RB1_tag in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(21) is mu_L_RB1_tag in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(22) is mu_RB1_GRKArr in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(23) is mu_L_RB1_GRKArr in component GPCR_B1AR_reduced (J_per_mol). C ALGBRC(24) is mu_GRKArr in component GPCR_B1AR_reduced (J_per_mol). C CONSTS(38) is F in component constants (C_per_mol). C RATES(1) is d/dt q_RB1_inactive in component environment (fmol). C RATES(2) is d/dt q_L_RB1_inactive in component environment (fmol). C RATES(3) is d/dt q_LB1_ode in component environment (fmol). C RATES(4) is d/dt q_RB1 in component environment (fmol). C RATES(5) is d/dt q_Gs in component environment (fmol). C RATES(6) is d/dt q_RB1_Gs in component environment (fmol). C RATES(7) is d/dt q_L_RB1 in component environment (fmol). C RATES(8) is d/dt q_L_RB1_Gs in component environment (fmol). C RATES(9) is d/dt q_Gsa_GTP in component environment (fmol). C RATES(10) is d/dt q_Gsbetagamma in component environment (fmol). C RATES(11) is d/dt q_Gsa_GDP in component environment (fmol). C RATES(12) is d/dt q_GTP in component environment (fmol). C RATES(13) is d/dt q_GDP in component environment (fmol). C RATES(14) is d/dt q_Pi in component environment (fmol). C RATES(15) is d/dt q_RB1_tag in component environment (fmol). C RATES(16) is d/dt q_L_RB1_tag in component environment (fmol). C RATES(17) is d/dt q_RB1_GRKArr in component environment (fmol). C RATES(18) is d/dt q_L_RB1_GRKArr in component environment (fmol). C RATES(19) is d/dt q_GRKArr in component environment (fmol). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.0004579000e0 STATES(2) = 1e-18 STATES(3) = 0 STATES(4) = 1e-18 STATES(5) = 0.1455400000 STATES(6) = 1e-18 STATES(7) = 1e-18 STATES(8) = 1e-18 STATES(9) = 0.01 STATES(10) = 0.02 STATES(11) = 0.01 STATES(12) = 2.2 STATES(13) = 1.1 STATES(14) = 570 STATES(15) = 1e-18 STATES(16) = 1e-18 STATES(17) = 1e-18 STATES(18) = 1e-18 STATES(19) = 1e-3 CONSTS(1) = 0.5e1 CONSTS(2) = 5e-1 CONSTS(3) = 5e-1 CONSTS(4) = 1e1 CONSTS(5) = 1e-8 CONSTS(6) = 1036.38 CONSTS(7) = 1.83921e-07 CONSTS(8) = 891573 CONSTS(9) = 1.58222e+06 CONSTS(10) = 52417.5 CONSTS(11) = 0.000610519 CONSTS(12) = 0.576677 CONSTS(13) = 0.0661821 CONSTS(14) = 8.60273e-06 CONSTS(15) = 0.00230556 CONSTS(16) = 2.17775 CONSTS(17) = 28.0492 CONSTS(18) = 1.58056e+11 CONSTS(19) = 0.0574759 CONSTS(20) = 0.280492 CONSTS(21) = 0.00337913 CONSTS(22) = 1.07597 CONSTS(23) = 0.158056 CONSTS(24) = 0.00113911 CONSTS(25) = 0.00878478 CONSTS(26) = 736.699 CONSTS(27) = 161.34 CONSTS(28) = 823.314 CONSTS(29) = 3.61368e-10 CONSTS(30) = 7.91408e-11 CONSTS(31) = 0.500146 CONSTS(32) = 0.000529497 CONSTS(33) = 1.26086e-05 CONSTS(34) = 1.33485e-08 CONSTS(35) = 732843 CONSTS(36) = 8.31 CONSTS(37) = 310 CONSTS(38) = 96485 CONSTS(39) = CONSTS(4)/CONSTS(3) CONSTS(40) = 0.000100000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(5) = CONSTS(36)*CONSTS(37)*log( CONSTS(17)*STATES(1)) ALGBRC(9) = CONSTS(36)*CONSTS(37)*log( CONSTS(20)*STATES(4)) ALGBRC(25) = CONSTS(6)*(EXP(ALGBRC(5)/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(9)/( CONSTS(36)*CONSTS(37)))) RATES(1) = - ALGBRC(25)+ 0.00000*CONSTS(40) ALGBRC(7) = CONSTS(36)*CONSTS(37)*log( CONSTS(18)*STATES(2)) ALGBRC(12) = CONSTS(36)*CONSTS(37)*log( CONSTS(23)*STATES(7)) ALGBRC(26) = CONSTS(7)*(EXP(ALGBRC(7)/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(12)/( CONSTS(36)*CONSTS(37)))) RATES(2) = - ALGBRC(26) ALGBRC(1) = TERNRY(VOI.LT.CONSTS(1).AND.VOI.GT.CONSTS(1) - CONSTS(3), CONSTS(5)+ CONSTS(39)*((VOI - CONSTS(1))+CONSTS(3)), TERNRY(VOI.GE.CONSTS(1).AND.VOI.LT.CONSTS(1)+CONSTS(2), CONSTS(4)+CONSTS(5), TERNRY(VOI.LE.CONSTS(1)+CONSTS(3)+CONSTS(2).AND.VOI.GE.CONSTS(1)+CONSTS(2), CONSTS(5)+ - CONSTS(39)*(((VOI - CONSTS(1)) - CONSTS(3)) - CONSTS(2)), CONSTS(5)) ALGBRC(4) = ALGBRC(1)+STATES(3) ALGBRC(8) = CONSTS(36)*CONSTS(37)*log( CONSTS(19)*ALGBRC(4)) ALGBRC(29) = CONSTS(10)*(EXP((ALGBRC(9)+ALGBRC(8))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(12)/( CONSTS(36)*CONSTS(37)))) RATES(3) = - ALGBRC(29) ALGBRC(10) = CONSTS(36)*CONSTS(37)*log( CONSTS(21)*STATES(5)) ALGBRC(11) = CONSTS(36)*CONSTS(37)*log( CONSTS(22)*STATES(6)) ALGBRC(27) = CONSTS(8)*(EXP((ALGBRC(9)+ALGBRC(10))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(11)/( CONSTS(36)*CONSTS(37)))) RATES(4) = (ALGBRC(25) - ALGBRC(27)) - ALGBRC(29) ALGBRC(14) = CONSTS(36)*CONSTS(37)*log( CONSTS(25)*STATES(9)) ALGBRC(15) = CONSTS(36)*CONSTS(37)*log( CONSTS(26)*STATES(10)) ALGBRC(17) = CONSTS(36)*CONSTS(37)*log( CONSTS(28)*STATES(12)) ALGBRC(18) = CONSTS(36)*CONSTS(37)*log( CONSTS(29)*STATES(13)) ALGBRC(20) = CONSTS(36)*CONSTS(37)*log( CONSTS(31)*STATES(15)) ALGBRC(30) = CONSTS(11)*(EXP((ALGBRC(11)+ALGBRC(17))/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(14)+ALGBRC(15)+ALGBRC(20)+ALGBRC(18))/( CONSTS(36)*CONSTS(37)))) RATES(6) = ALGBRC(27) - ALGBRC(30) ALGBRC(13) = CONSTS(36)*CONSTS(37)*log( CONSTS(24)*STATES(8)) ALGBRC(28) = CONSTS(9)*(EXP((ALGBRC(12)+ALGBRC(10))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(13)/( CONSTS(36)*CONSTS(37)))) RATES(7) = (ALGBRC(26) - ALGBRC(28))+ALGBRC(29) ALGBRC(21) = CONSTS(36)*CONSTS(37)*log( CONSTS(32)*STATES(16)) ALGBRC(31) = CONSTS(12)*(EXP((ALGBRC(13)+ALGBRC(17))/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(14)+ALGBRC(15)+ALGBRC(21)+ALGBRC(18))/( CONSTS(36)*CONSTS(37)))) RATES(8) = ALGBRC(28) - ALGBRC(31) RATES(12) = - ALGBRC(30) - ALGBRC(31) RATES(13) = ALGBRC(30)+ALGBRC(31) ALGBRC(16) = CONSTS(36)*CONSTS(37)*log( CONSTS(27)*STATES(11)) ALGBRC(19) = CONSTS(36)*CONSTS(37)*log( CONSTS(30)*STATES(14)) ALGBRC(32) = CONSTS(13)*(EXP(ALGBRC(14)/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(16)+ALGBRC(19))/( CONSTS(36)*CONSTS(37)))) RATES(9) = (ALGBRC(30)+ALGBRC(31)) - ALGBRC(32) RATES(14) = ALGBRC(32) ALGBRC(22) = CONSTS(36)*CONSTS(37)*log( CONSTS(33)*STATES(17)) ALGBRC(24) = CONSTS(36)*CONSTS(37)*log( CONSTS(35)*STATES(19)) ALGBRC(33) = CONSTS(15)*(EXP((ALGBRC(20)+ALGBRC(24))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(22)/( CONSTS(36)*CONSTS(37)))) RATES(15) = ALGBRC(30) - ALGBRC(33) RATES(17) = ALGBRC(33) ALGBRC(34) = CONSTS(14)*(EXP((ALGBRC(16)+ALGBRC(15))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(10)/( CONSTS(36)*CONSTS(37)))) RATES(5) = (- ALGBRC(27) - ALGBRC(28))+ALGBRC(34) RATES(10) = (ALGBRC(30)+ALGBRC(31)) - ALGBRC(34) RATES(11) = ALGBRC(32) - ALGBRC(34) ALGBRC(23) = CONSTS(36)*CONSTS(37)*log( CONSTS(34)*STATES(18)) ALGBRC(35) = CONSTS(16)*(EXP((ALGBRC(21)+ALGBRC(24))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(23)/( CONSTS(36)*CONSTS(37)))) RATES(16) = ALGBRC(31) - ALGBRC(35) RATES(18) = ALGBRC(35) RATES(19) = - ALGBRC(33) - ALGBRC(35) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(5) = CONSTS(36)*CONSTS(37)*log( CONSTS(17)*STATES(1)) ALGBRC(9) = CONSTS(36)*CONSTS(37)*log( CONSTS(20)*STATES(4)) ALGBRC(25) = CONSTS(6)*(EXP(ALGBRC(5)/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(9)/( CONSTS(36)*CONSTS(37)))) ALGBRC(7) = CONSTS(36)*CONSTS(37)*log( CONSTS(18)*STATES(2)) ALGBRC(12) = CONSTS(36)*CONSTS(37)*log( CONSTS(23)*STATES(7)) ALGBRC(26) = CONSTS(7)*(EXP(ALGBRC(7)/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(12)/( CONSTS(36)*CONSTS(37)))) ALGBRC(1) = TERNRY(VOI.LT.CONSTS(1).AND.VOI.GT.CONSTS(1) - CONSTS(3), CONSTS(5)+ CONSTS(39)*((VOI - CONSTS(1))+CONSTS(3)), TERNRY(VOI.GE.CONSTS(1).AND.VOI.LT.CONSTS(1)+CONSTS(2), CONSTS(4)+CONSTS(5), TERNRY(VOI.LE.CONSTS(1)+CONSTS(3)+CONSTS(2).AND.VOI.GE.CONSTS(1)+CONSTS(2), CONSTS(5)+ - CONSTS(39)*(((VOI - CONSTS(1)) - CONSTS(3)) - CONSTS(2)), CONSTS(5)) ALGBRC(4) = ALGBRC(1)+STATES(3) ALGBRC(8) = CONSTS(36)*CONSTS(37)*log( CONSTS(19)*ALGBRC(4)) ALGBRC(29) = CONSTS(10)*(EXP((ALGBRC(9)+ALGBRC(8))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(12)/( CONSTS(36)*CONSTS(37)))) ALGBRC(10) = CONSTS(36)*CONSTS(37)*log( CONSTS(21)*STATES(5)) ALGBRC(11) = CONSTS(36)*CONSTS(37)*log( CONSTS(22)*STATES(6)) ALGBRC(27) = CONSTS(8)*(EXP((ALGBRC(9)+ALGBRC(10))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(11)/( CONSTS(36)*CONSTS(37)))) ALGBRC(14) = CONSTS(36)*CONSTS(37)*log( CONSTS(25)*STATES(9)) ALGBRC(15) = CONSTS(36)*CONSTS(37)*log( CONSTS(26)*STATES(10)) ALGBRC(17) = CONSTS(36)*CONSTS(37)*log( CONSTS(28)*STATES(12)) ALGBRC(18) = CONSTS(36)*CONSTS(37)*log( CONSTS(29)*STATES(13)) ALGBRC(20) = CONSTS(36)*CONSTS(37)*log( CONSTS(31)*STATES(15)) ALGBRC(30) = CONSTS(11)*(EXP((ALGBRC(11)+ALGBRC(17))/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(14)+ALGBRC(15)+ALGBRC(20)+ALGBRC(18))/( CONSTS(36)*CONSTS(37)))) ALGBRC(13) = CONSTS(36)*CONSTS(37)*log( CONSTS(24)*STATES(8)) ALGBRC(28) = CONSTS(9)*(EXP((ALGBRC(12)+ALGBRC(10))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(13)/( CONSTS(36)*CONSTS(37)))) ALGBRC(21) = CONSTS(36)*CONSTS(37)*log( CONSTS(32)*STATES(16)) ALGBRC(31) = CONSTS(12)*(EXP((ALGBRC(13)+ALGBRC(17))/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(14)+ALGBRC(15)+ALGBRC(21)+ALGBRC(18))/( CONSTS(36)*CONSTS(37)))) ALGBRC(16) = CONSTS(36)*CONSTS(37)*log( CONSTS(27)*STATES(11)) ALGBRC(19) = CONSTS(36)*CONSTS(37)*log( CONSTS(30)*STATES(14)) ALGBRC(32) = CONSTS(13)*(EXP(ALGBRC(14)/( CONSTS(36)*CONSTS(37))) - EXP((ALGBRC(16)+ALGBRC(19))/( CONSTS(36)*CONSTS(37)))) ALGBRC(22) = CONSTS(36)*CONSTS(37)*log( CONSTS(33)*STATES(17)) ALGBRC(24) = CONSTS(36)*CONSTS(37)*log( CONSTS(35)*STATES(19)) ALGBRC(33) = CONSTS(15)*(EXP((ALGBRC(20)+ALGBRC(24))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(22)/( CONSTS(36)*CONSTS(37)))) ALGBRC(34) = CONSTS(14)*(EXP((ALGBRC(16)+ALGBRC(15))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(10)/( CONSTS(36)*CONSTS(37)))) ALGBRC(23) = CONSTS(36)*CONSTS(37)*log( CONSTS(34)*STATES(18)) ALGBRC(35) = CONSTS(16)*(EXP((ALGBRC(21)+ALGBRC(24))/( CONSTS(36)*CONSTS(37))) - EXP(ALGBRC(23)/( CONSTS(36)*CONSTS(37)))) ALGBRC(2) = STATES(1)+STATES(2)+STATES(4)+STATES(6)+STATES(7)+STATES(8)+STATES(15)+STATES(16)+STATES(17)+STATES(18) ALGBRC(3) = STATES(5)+STATES(6)+STATES(8)+STATES(9)+STATES(11) ALGBRC(6) = STATES(2)+ALGBRC(4)+STATES(7)+STATES(8)+STATES(16)+STATES(18) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END