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 1 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 t in component Test (second).
C ALGBRC(1) is J in component PingPongBiBi (mM_per_second).
C STATES(1) is S1 in component Test (mM).
C STATES(2) is S2 in component Test (mM).
C STATES(3) is P1 in component Test (mM).
C STATES(4) is P2 in component Test (mM).
C CONSTS(1) is V_f in component Test (mM_per_second).
C CONSTS(2) is V_b in component Test (mM_per_second).
C CONSTS(3) is Keq in component Test (dimensionless).
C CONSTS(4) is Km_S1 in component Test (mM).
C CONSTS(5) is Km_S2 in component Test (mM).
C CONSTS(6) is Km_P1 in component Test (mM).
C CONSTS(7) is Km_P2 in component Test (mM).
C CONSTS(8) is Ki_S1 in component Test (mM).
C CONSTS(9) is Ki_P2 in component Test (mM).
C RATES(1) is d/dt S1 in component Test (mM).
C RATES(2) is d/dt S2 in component Test (mM).
C RATES(3) is d/dt P1 in component Test (mM).
C RATES(4) is d/dt P2 in component Test (mM).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 2
STATES(2) = 1
STATES(3) = 1
STATES(4) = 0
CONSTS(1) = 10.0000
CONSTS(2) = 3.00000
CONSTS(3) = 0.200000
CONSTS(4) = 0.100000
CONSTS(5) = 0.500000
CONSTS(6) = 0.100000
CONSTS(7) = 0.500000
CONSTS(8) = 0.500000
CONSTS(9) = 0.500000
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*( STATES(1)*STATES(1) - ( STATES(3)*STATES(4))/CONSTS(3)))/( STATES(1)*STATES(1)+ CONSTS(5)*STATES(1)+ CONSTS(4)*STATES(1)*(1.00000+STATES(4)/CONSTS(9))+ (CONSTS(1)/( CONSTS(2)*CONSTS(3)))*( CONSTS(7)*STATES(3)*(1.00000+STATES(1)/CONSTS(8))+ STATES(4)*(CONSTS(6)+STATES(3))))
RATES(1) = - ALGBRC(1)
RATES(2) = - ALGBRC(1)
RATES(3) = ALGBRC(1)
RATES(4) = ALGBRC(1)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*( STATES(1)*STATES(1) - ( STATES(3)*STATES(4))/CONSTS(3)))/( STATES(1)*STATES(1)+ CONSTS(5)*STATES(1)+ CONSTS(4)*STATES(1)*(1.00000+STATES(4)/CONSTS(9))+ (CONSTS(1)/( CONSTS(2)*CONSTS(3)))*( CONSTS(7)*STATES(3)*(1.00000+STATES(1)/CONSTS(8))+ STATES(4)*(CONSTS(6)+STATES(3))))
RETURN
END
