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 19 entries in the algebraic variable array.
C There are a total of 9 entries in each of the rate and state variable arrays.
C There are a total of 29 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C ALGBRC(2) is v_1 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(26) is v_2 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(27) is v_3 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(3) is v_4 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(28) is v_5 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(4) is v_6 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(29) is v_7 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(5) is v_8 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(6) is v_9 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(7) is v_10 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(8) is v_11 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(9) is v_12 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(10) is v_13 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(11) is v_14 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(12) is v_15 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(13) is v_16 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(14) is v_17 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(15) is v_18 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(16) is v_19 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(18) is v_20 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(17) is v_21 in component main (pmol_per_ug_DNA_per_hour).
C ALGBRC(19) is v_22 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(1) is k_1 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(2) is k_2 in component main (pmol_per_ug_DNA_per_hour).
C CONSTS(3) is k_3 in component main (per_hour).
C CONSTS(4) is k_4 in component main (per_hour).
C CONSTS(5) is k_5 in component main (ug_DNA_per_pmol_per_hour).
C CONSTS(6) is k_6 in component main (per_hour).
C CONSTS(7) is k_7 in component main (per_hour).
C CONSTS(8) is k_8 in component main (per_hour).
C CONSTS(9) is k_9 in component main (per_hour).
C CONSTS(10) is k_10 in component main (ug_DNA_per_pmol_per_hour).
C CONSTS(11) is k_11 in component main (per_hour).
C CONSTS(12) is k_12 in component main (per_hour).
C CONSTS(13) is k_13 in component main (per_hour).
C CONSTS(14) is k_14 in component main (per_hour).
C CONSTS(15) is k_15 in component main (per_hour).
C CONSTS(16) is k_16 in component main (per_hour).
C CONSTS(17) is k_17 in component main (per_hour).
C CONSTS(18) is k_18 in component main (per_hour).
C CONSTS(19) is k_19 in component main (per_hour).
C CONSTS(20) is k_20 in component main (per_hour).
C CONSTS(21) is k_21 in component main (per_hour).
C CONSTS(22) is k_22 in component main (per_hour).
C ALGBRC(1) is LPS in component main (dimensionless).
C CONSTS(23) is PIP_2 in component main (dimensionless).
C CONSTS(24) is DG in component main (pmol_per_ug_DNA).
C CONSTS(25) is GPCho in component main (pmol_per_ug_DNA).
C STATES(1) is AA in component main (pmol_per_ug_DNA).
C STATES(2) is HETE in component main (pmol_per_ug_DNA).
C STATES(3) is PGH_2 in component main (pmol_per_ug_DNA).
C STATES(4) is PGE_2 in component main (pmol_per_ug_DNA).
C STATES(5) is PGF_2a in component main (pmol_per_ug_DNA).
C STATES(6) is PGD_2 in component main (pmol_per_ug_DNA).
C STATES(7) is PGJ_2 in component main (pmol_per_ug_DNA).
C STATES(8) is dPGD_2 in component main (pmol_per_ug_DNA).
C STATES(9) is dPGJ_2 in component main (pmol_per_ug_DNA).
C RATES(1) is d/dt AA in component main (pmol_per_ug_DNA).
C RATES(2) is d/dt HETE in component main (pmol_per_ug_DNA).
C RATES(3) is d/dt PGH_2 in component main (pmol_per_ug_DNA).
C RATES(4) is d/dt PGE_2 in component main (pmol_per_ug_DNA).
C RATES(5) is d/dt PGF_2a in component main (pmol_per_ug_DNA).
C RATES(6) is d/dt PGD_2 in component main (pmol_per_ug_DNA).
C RATES(7) is d/dt PGJ_2 in component main (pmol_per_ug_DNA).
C RATES(8) is d/dt dPGD_2 in component main (pmol_per_ug_DNA).
C RATES(9) is d/dt dPGJ_2 in component main (pmol_per_ug_DNA).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 355.637
      CONSTS(2) = 1e-15
      CONSTS(3) = 1e-15
      CONSTS(4) = 1e-15
      CONSTS(5) = 1e-15
      CONSTS(6) = 0.33
      CONSTS(7) = 1e-15
      CONSTS(8) = 0.007
      CONSTS(9) = 0.187
      CONSTS(10) = 0.024
      CONSTS(11) = 0.111
      CONSTS(12) = 0.098
      CONSTS(13) = 0.204
      CONSTS(14) = 1e-15
      CONSTS(15) = 0.061
      CONSTS(16) = 1e-15
      CONSTS(17) = 3.116
      CONSTS(18) = 0.054
      CONSTS(19) = 0.029
      CONSTS(20) = 0.014
      CONSTS(21) = 0.034
      CONSTS(22) = 0.116
      CONSTS(23) = 1
      CONSTS(24) = 0
      CONSTS(25) = 1
      STATES(1) = 25
      STATES(2) = 0
      STATES(3) = 0
      STATES(4) = 0
      STATES(5) = 0
      STATES(6) = 0
      STATES(7) = 0
      STATES(8) = 0
      STATES(9) = 0
      CONSTS(26) =  CONSTS(23)*CONSTS(2)
      CONSTS(27) =  CONSTS(24)*CONSTS(3)
      CONSTS(28) =  CONSTS(24)*CONSTS(25)*CONSTS(5)
      CONSTS(29) =  CONSTS(25)*CONSTS(7)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(5) =  STATES(1)*CONSTS(8)
      ALGBRC(6) =  STATES(2)*CONSTS(9)
      RATES(2) = ALGBRC(5) - ALGBRC(6)
      ALGBRC(1) = TERNRY(VOI.LE.0.500000,  VOI*2.00000, TERNRY(VOI.GT.0.500000.AND.VOI.LT.2.00000, 1.00000 - (VOI - 0.500000)/1.50000, 0.00000)
      ALGBRC(2) =  ALGBRC(1)*CONSTS(23)*CONSTS(1)
      ALGBRC(3) =  STATES(1)*CONSTS(4)
      ALGBRC(4) =  ALGBRC(1)*CONSTS(25)*CONSTS(6)
      ALGBRC(7) =  CONSTS(24)*STATES(1)*CONSTS(10)
      ALGBRC(8) =  ALGBRC(1)*STATES(1)*CONSTS(11)
      ALGBRC(9) =  STATES(1)*CONSTS(12)
      RATES(1) = ((((((ALGBRC(2)+CONSTS(26)+CONSTS(27)) - ALGBRC(3))+CONSTS(28)+ALGBRC(4)+CONSTS(29)) - ALGBRC(5)) - ALGBRC(7)) - ALGBRC(8)) - ALGBRC(9)
      ALGBRC(10) =  STATES(3)*CONSTS(13)
      ALGBRC(11) =  STATES(4)*CONSTS(14)
      RATES(4) = ALGBRC(10) - ALGBRC(11)
      ALGBRC(12) =  STATES(3)*CONSTS(15)
      ALGBRC(14) =  STATES(3)*CONSTS(17)
      RATES(3) = (((ALGBRC(7)+ALGBRC(8)+ALGBRC(9)) - ALGBRC(10)) - ALGBRC(12)) - ALGBRC(14)
      ALGBRC(13) =  STATES(5)*CONSTS(16)
      RATES(5) = ALGBRC(12) - ALGBRC(13)
      ALGBRC(15) =  STATES(6)*CONSTS(18)
      ALGBRC(16) =  STATES(6)*CONSTS(19)
      RATES(6) = (ALGBRC(14) - ALGBRC(15)) - ALGBRC(16)
      ALGBRC(17) =  STATES(7)*CONSTS(21)
      RATES(7) = ALGBRC(15) - ALGBRC(17)
      ALGBRC(18) =  STATES(8)*CONSTS(20)
      RATES(8) = ALGBRC(16) - ALGBRC(18)
      ALGBRC(19) =  STATES(9)*CONSTS(22)
      RATES(9) = ALGBRC(17) - ALGBRC(19)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(5) =  STATES(1)*CONSTS(8)
      ALGBRC(6) =  STATES(2)*CONSTS(9)
      ALGBRC(1) = TERNRY(VOI.LE.0.500000,  VOI*2.00000, TERNRY(VOI.GT.0.500000.AND.VOI.LT.2.00000, 1.00000 - (VOI - 0.500000)/1.50000, 0.00000)
      ALGBRC(2) =  ALGBRC(1)*CONSTS(23)*CONSTS(1)
      ALGBRC(3) =  STATES(1)*CONSTS(4)
      ALGBRC(4) =  ALGBRC(1)*CONSTS(25)*CONSTS(6)
      ALGBRC(7) =  CONSTS(24)*STATES(1)*CONSTS(10)
      ALGBRC(8) =  ALGBRC(1)*STATES(1)*CONSTS(11)
      ALGBRC(9) =  STATES(1)*CONSTS(12)
      ALGBRC(10) =  STATES(3)*CONSTS(13)
      ALGBRC(11) =  STATES(4)*CONSTS(14)
      ALGBRC(12) =  STATES(3)*CONSTS(15)
      ALGBRC(14) =  STATES(3)*CONSTS(17)
      ALGBRC(13) =  STATES(5)*CONSTS(16)
      ALGBRC(15) =  STATES(6)*CONSTS(18)
      ALGBRC(16) =  STATES(6)*CONSTS(19)
      ALGBRC(17) =  STATES(7)*CONSTS(21)
      ALGBRC(18) =  STATES(8)*CONSTS(20)
      ALGBRC(19) =  STATES(9)*CONSTS(22)
      RETURN
      END
      REAL FUNCTION TERNRY(TEST, VALA, VALB)
      LOGICAL TEST
      REAL VALA, VALB
      IF (TEST) THEN
        TERNRY = VALA
      ELSE
        TERNRY = VALB
      ENDIF
      RETURN
      END