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 7 entries in the algebraic variable array.
C There are a total of 6 entries in each of the rate and state variable arrays.
C There are a total of 10 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is C2 in component C2 (millimolar).
C CONSTS(1) is k6 in component reaction_constants (first_order_rate_constant).
C CONSTS(9) is k8 in component reaction_constants (second_order_rate_constant).
C CONSTS(2) is k9 in component reaction_constants (first_order_rate_constant).
C STATES(2) is M in component M (millimolar).
C CONSTS(3) is P in component reaction_constants (millimolar).
C STATES(3) is CP in component CP (millimolar).
C ALGBRC(5) is k3 in component reaction_constants (second_order_rate_constant).
C STATES(4) is Y in component Y (millimolar).
C STATES(5) is pM in component pM (millimolar).
C CONSTS(10) is k5 in component reaction_constants (second_order_rate_constant).
C ALGBRC(7) is F in component reaction_constants (first_order_rate_constant).
C ALGBRC(2) is k1 in component reaction_constants (first_order_rate_constant).
C CONSTS(4) is k2 in component reaction_constants (first_order_rate_constant).
C CONSTS(5) is aa in component reaction_constants (millimolar).
C STATES(6) is YP in component YP (millimolar).
C CONSTS(6) is k7 in component reaction_constants (first_order_rate_constant).
C CONSTS(7) is k4 in component reaction_constants (first_order_rate_constant).
C CONSTS(8) is k4_ in component reaction_constants (first_order_rate_constant).
C ALGBRC(1) is CT in component reaction_constants (millimolar).
C ALGBRC(3) is YT in component reaction_constants (millimolar).
C ALGBRC(6) is YT_CT in component reaction_constants (dimensionless).
C ALGBRC(4) is M_CT in component reaction_constants (dimensionless).
C RATES(1) is d/dt C2 in component C2 (millimolar).
C RATES(3) is d/dt CP in component CP (millimolar).
C RATES(5) is d/dt pM in component pM (millimolar).
C RATES(2) is d/dt M in component M (millimolar).
C RATES(4) is d/dt Y in component Y (millimolar).
C RATES(6) is d/dt YP in component YP (millimolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.001
      CONSTS(1) = 1.0
      CONSTS(2) = 100.0
      STATES(2) = 0.001
      CONSTS(3) = 1.0
      STATES(3) = 0.001
      STATES(4) = 0.001
      STATES(5) = 0.001
      CONSTS(4) = 0.0
      CONSTS(5) = 1.0
      STATES(6) = 0.001
      CONSTS(6) = 0.6
      CONSTS(7) = 180.0
      CONSTS(8) = 0.018
      CONSTS(9) = CONSTS(2)/CONSTS(3)
      CONSTS(10) = 0.00000/CONSTS(3)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ( CONSTS(1)*STATES(2)+ CONSTS(2)*STATES(3)) -  CONSTS(9)*CONSTS(3)*STATES(1)
      RATES(6) =  CONSTS(1)*STATES(2) -  CONSTS(6)*STATES(6)
      ALGBRC(1) = STATES(1)+STATES(3)+STATES(5)+STATES(2)
      ALGBRC(5) = 200.000/ALGBRC(1)
      RATES(3) =  CONSTS(9)*CONSTS(3)*STATES(1) - ( CONSTS(2)*STATES(3)+ ALGBRC(5)*STATES(3)*STATES(4))
      ALGBRC(2) = ( 0.0150000*ALGBRC(1))/CONSTS(5)
      RATES(4) =  CONSTS(5)*ALGBRC(2) - ( ALGBRC(5)*STATES(3)*STATES(4)+ CONSTS(4)*STATES(4))
      ALGBRC(7) = CONSTS(8)+ CONSTS(7)*STATES(2)/ALGBRC(1) ** 2.00000
      RATES(5) = ( ALGBRC(5)*STATES(3)*STATES(4)+ CONSTS(10)*CONSTS(3)*STATES(2)) -  STATES(5)*ALGBRC(7)
      RATES(2) =  STATES(5)*ALGBRC(7) - ( CONSTS(10)*CONSTS(3)*STATES(2)+ CONSTS(1)*STATES(2))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = STATES(1)+STATES(3)+STATES(5)+STATES(2)
      ALGBRC(5) = 200.000/ALGBRC(1)
      ALGBRC(2) = ( 0.0150000*ALGBRC(1))/CONSTS(5)
      ALGBRC(7) = CONSTS(8)+ CONSTS(7)*STATES(2)/ALGBRC(1) ** 2.00000
      ALGBRC(3) = STATES(4)+STATES(6)+STATES(5)+STATES(2)
      ALGBRC(4) = STATES(2)/ALGBRC(1)
      ALGBRC(6) = ALGBRC(3)/ALGBRC(1)
      RETURN
      END