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 2 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 13 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is C in component C (nanomolar).
C CONSTS(1) is kf1 in component model_parameters (second_order_rate_constant).
C CONSTS(12) is kr1 in component model_parameters (first_order_rate_constant).
C CONSTS(2) is kx2 in component model_parameters (second_order_rate_constant).
C CONSTS(3) is k_x2 in component model_parameters (first_order_rate_constant).
C CONSTS(4) is kt in component model_parameters (first_order_rate_constant).
C STATES(2) is D in component D (nanomolar).
C CONSTS(5) is L in component model_parameters (nanomolar).
C STATES(3) is R in component R (nanomolar).
C CONSTS(13) is k_x1 in component model_parameters (first_order_rate_constant).
C CONSTS(6) is ke in component model_parameters (first_order_rate_constant).
C CONSTS(7) is krec in component model_parameters (first_order_rate_constant).
C STATES(4) is Ri in component Ri (nanomolar).
C CONSTS(8) is Vs in component model_parameters (flux).
C CONSTS(9) is kdeg in component model_parameters (first_order_rate_constant).
C ALGBRC(1) is R0 in component R0 (nanomolar).
C ALGBRC(2) is signal in component signal (dimensionless).
C CONSTS(10) is kappaE in component model_parameters (dimensionless).
C CONSTS(11) is KD in component model_parameters (nanomolar).
C RATES(1) is d/dt C in component C (nanomolar).
C RATES(2) is d/dt D in component D (nanomolar).
C RATES(3) is d/dt R in component R (nanomolar).
C RATES(4) is d/dt Ri in component Ri (nanomolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.0
      CONSTS(1) = 0.1
      CONSTS(2) = 4.83
      CONSTS(3) = 0.016
      CONSTS(4) = 0.005
      STATES(2) = 0.0
      CONSTS(5) = 0.01
      STATES(3) = 0.0
      CONSTS(6) = 0.10
      CONSTS(7) = 0.0
      STATES(4) = 0.0
      CONSTS(8) = 10.0
      CONSTS(9) = 0.05
      CONSTS(10) = 0.20
      CONSTS(11) = 1.0
      CONSTS(12) =  CONSTS(11)*CONSTS(1)
      CONSTS(13) =  0.0100000*CONSTS(12)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = ( CONSTS(1)*CONSTS(5)*STATES(3)+ CONSTS(3)*STATES(2)) -  (CONSTS(12)+ CONSTS(2)*STATES(3)+CONSTS(4))*STATES(1)
      RATES(2) =  CONSTS(2)*STATES(3)*STATES(1) -  (CONSTS(3)+CONSTS(13)+CONSTS(6))*STATES(2)
      RATES(3) = (CONSTS(8)+ CONSTS(12)*STATES(1)+ (CONSTS(3)+ 2.00000*CONSTS(13))*STATES(2)+ CONSTS(7)*STATES(4)) -  ( CONSTS(1)*CONSTS(5)+ CONSTS(2)*STATES(1)+CONSTS(4))*STATES(3)
      RATES(4) =  CONSTS(4)*(STATES(3)+STATES(1)) -  (CONSTS(7)+CONSTS(9))*STATES(4)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = STATES(3)+STATES(1)+STATES(3)+ 2.00000*(CONSTS(6)/CONSTS(4))*(1.00000+CONSTS(7)/CONSTS(9))*STATES(2)
      ALGBRC(2) = (( 2.00000*STATES(2))/ALGBRC(1))/(CONSTS(10)+( 2.00000*STATES(2))/ALGBRC(1))
      RETURN
      END