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 14 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(13) 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(14) 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 R_initial in component R (nanomolar).
C CONSTS(8) is krec in component model_parameters (first_order_rate_constant).
C STATES(4) is Ri in component Ri (nanomolar).
C CONSTS(9) is Vs in component model_parameters (flux).
C CONSTS(10) is kdeg in component model_parameters (first_order_rate_constant).
C ALGBRC(1) is signal in component signal (dimensionless).
C CONSTS(11) is kappaE in component model_parameters (dimensionless).
C CONSTS(12) 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) = 2000.0
      CONSTS(6) = 0.10
      CONSTS(7) = 2000.0
      CONSTS(8) = 0.0
      STATES(4) = 200.0
      CONSTS(9) = 10.0
      CONSTS(10) = 0.05
      CONSTS(11) = 0.20
      CONSTS(12) = 1.0
      CONSTS(13) =  CONSTS(12)*CONSTS(1)
      CONSTS(14) =  0.0100000*CONSTS(13)
      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(13)+ CONSTS(2)*STATES(3)+CONSTS(4))*STATES(1)
      RATES(2) =  CONSTS(2)*STATES(3)*STATES(1) -  (CONSTS(3)+CONSTS(14)+CONSTS(6))*STATES(2)
      RATES(3) = (CONSTS(9)+ CONSTS(13)*STATES(1)+ (CONSTS(3)+ 2.00000*CONSTS(14))*STATES(2)+ CONSTS(8)*STATES(4)) -  ( CONSTS(1)*CONSTS(5)+ CONSTS(2)*STATES(1)+CONSTS(4))*STATES(3)
      RATES(4) =  CONSTS(4)*(STATES(3)+STATES(1)) -  (CONSTS(8)+CONSTS(10))*STATES(4)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = (( 2.00000*STATES(2))/CONSTS(7))/(CONSTS(11)+( 2.00000*STATES(2))/CONSTS(7))
      RETURN
      END