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 0 entries in the algebraic variable array.
C There are a total of 10 entries in each of the rate and state variable arrays.
C There are a total of 15 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C STATES(1) is c11 in component c11 (per_millilitre).
C CONSTS(1) is p1 in component model_parameters (per_hour).
C CONSTS(2) is p2 in component model_parameters (per_hour).
C CONSTS(3) is p5 in component model_parameters (per_hour).
C CONSTS(4) is p6 in component model_parameters (per_hour).
C STATES(2) is c12 in component c12 (per_millilitre).
C STATES(3) is c21 in component c21 (per_millilitre).
C CONSTS(5) is p4 in component model_parameters (per_hour).
C CONSTS(6) is p11 in component model_parameters (per_hour).
C CONSTS(7) is p12 in component model_parameters (per_hour).
C STATES(4) is c22 in component c22 (per_millilitre).
C STATES(5) is c31 in component c31 (per_millilitre).
C CONSTS(8) is p3 in component model_parameters (per_hour).
C CONSTS(9) is p7 in component model_parameters (per_hour).
C CONSTS(10) is p8 in component model_parameters (per_hour).
C STATES(6) is c32 in component c32 (per_millilitre).
C STATES(7) is c41 in component c41 (per_millilitre).
C CONSTS(11) is p9 in component model_parameters (per_hour).
C CONSTS(12) is p10 in component model_parameters (per_hour).
C STATES(8) is c42 in component c42 (per_millilitre).
C STATES(9) is c51 in component c51 (per_millilitre).
C CONSTS(13) is p13 in component model_parameters (per_hour).
C CONSTS(14) is p14 in component model_parameters (per_hour).
C CONSTS(15) is p15 in component model_parameters (per_hour).
C STATES(10) is c52 in component c52 (per_millilitre).
C RATES(1) is d/dt c11 in component c11 (per_millilitre).
C RATES(3) is d/dt c21 in component c21 (per_millilitre).
C RATES(5) is d/dt c31 in component c31 (per_millilitre).
C RATES(7) is d/dt c41 in component c41 (per_millilitre).
C RATES(9) is d/dt c51 in component c51 (per_millilitre).
C RATES(2) is d/dt c12 in component c12 (per_millilitre).
C RATES(4) is d/dt c22 in component c22 (per_millilitre).
C RATES(6) is d/dt c32 in component c32 (per_millilitre).
C RATES(8) is d/dt c42 in component c42 (per_millilitre).
C RATES(10) is d/dt c52 in component c52 (per_millilitre).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 9000
      CONSTS(1) = 0.097884
      CONSTS(2) = 0.085470
      CONSTS(3) = 5.119458
      CONSTS(4) = 7.986374
      STATES(2) = 10000
      STATES(3) = 0
      CONSTS(5) = 0.050607
      CONSTS(6) = 2.527205
      CONSTS(7) = 3.018396
      STATES(4) = 0
      STATES(5) = 0
      CONSTS(8) = 0.006932
      CONSTS(9) = 1.224656
      CONSTS(10) = 1.488771
      STATES(6) = 0
      STATES(7) = 0
      CONSTS(11) = 0.188594
      CONSTS(12) = 0.162463
      STATES(8) = 0
      STATES(9) = 0
      CONSTS(13) = 0.097796
      CONSTS(14) = 0.359250
      CONSTS(15) = 0.000002
      STATES(10) = 0
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = (( - CONSTS(1)*STATES(1) -  CONSTS(2)*STATES(1)) -  CONSTS(3)*STATES(1))+ CONSTS(4)*STATES(2)
      RATES(3) = (( CONSTS(1)*STATES(1) -  CONSTS(5)*STATES(3)) -  CONSTS(6)*STATES(3))+ CONSTS(7)*STATES(4)
      RATES(5) = (( CONSTS(2)*STATES(1) -  CONSTS(8)*STATES(5)) -  CONSTS(9)*STATES(5))+ CONSTS(10)*STATES(6)
      RATES(7) = (( CONSTS(8)*STATES(5)+ CONSTS(5)*STATES(3)) -  CONSTS(11)*STATES(7))+ CONSTS(12)*STATES(8)
      RATES(9) = ( CONSTS(13)*STATES(1) -  CONSTS(14)*STATES(9))+ CONSTS(15)*STATES(10)
      RATES(2) =  CONSTS(3)*STATES(1) -  CONSTS(4)*STATES(2)
      RATES(4) =  CONSTS(6)*STATES(3) -  CONSTS(7)*STATES(4)
      RATES(6) =  CONSTS(9)*STATES(5) -  CONSTS(10)*STATES(6)
      RATES(8) =  CONSTS(11)*STATES(7) -  CONSTS(12)*STATES(8)
      RATES(10) =  CONSTS(14)*STATES(9) -  CONSTS(15)*STATES(10)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END