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 3 entries in the algebraic variable array.
C There are a total of 3 entries in each of the rate and state variable arrays.
C There are a total of 19 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C CONSTS(1) is VM2 in component parameters (micromolar_min).
C CONSTS(2) is VM3 in component parameters (micromolar_min).
C CONSTS(3) is KR in component parameters (micromolar).
C CONSTS(4) is KA in component parameters (micromolar).
C CONSTS(5) is KP in component parameters (micromolar).
C CONSTS(6) is n in component parameters (dimensionless).
C CONSTS(7) is m in component parameters (dimensionless).
C CONSTS(8) is p in component parameters (dimensionless).
C CONSTS(9) is kf in component parameters (per_minute).
C CONSTS(10) is k in component parameters (per_minute).
C STATES(1) is Y in component insensitive_pool (micromolar).
C STATES(2) is Z in component cytosol (micromolar).
C ALGBRC(1) is v2 in component parameters (micromolar_min).
C ALGBRC(3) is v3 in component parameters (micromolar_min).
C CONSTS(11) is v0 in component cytosol (micromolar_min).
C CONSTS(12) is v1beta in component cytosol (micromolar_min).
C CONSTS(13) is vP in component phosphorylation (micromolar_min).
C ALGBRC(2) is vK in component kinase_reaction (micromolar_min).
C CONSTS(14) is K1 in component phosphorylation (dimensionless).
C CONSTS(15) is K2 in component phosphorylation (dimensionless).
C CONSTS(16) is WT in component phosphorylation (micromolar).
C STATES(3) is Wstar in component phosphorylation (dimensionless).
C CONSTS(17) is vMK in component kinase_reaction (micromolar_min).
C CONSTS(18) is Ka in component kinase_reaction (micromolar).
C CONSTS(19) is q in component kinase_reaction (dimensionless).
C RATES(2) is d/dt Z in component cytosol (micromolar).
C RATES(1) is d/dt Y in component insensitive_pool (micromolar).
C RATES(3) is d/dt Wstar in component phosphorylation (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 65
      CONSTS(2) = 500
      CONSTS(3) = 2
      CONSTS(4) = 0.9
      CONSTS(5) = 1
      CONSTS(6) = 2
      CONSTS(7) = 2
      CONSTS(8) = 4
      CONSTS(9) = 1
      CONSTS(10) = 10
      STATES(1) = 1.7
      STATES(2) = 0.26
      CONSTS(11) = 1
      CONSTS(12) = 2.7
      CONSTS(13) = 2.5
      CONSTS(14) = 0.01
      CONSTS(15) = 0.01
      CONSTS(16) = 1
      STATES(3) = 0.37
      CONSTS(17) = 20
      CONSTS(18) = 2.5
      CONSTS(19) = 1
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  CONSTS(17)*(STATES(2) ** CONSTS(19)/(CONSTS(18) ** CONSTS(19)+STATES(2) ** CONSTS(19)))
      RATES(3) =  (CONSTS(13)/CONSTS(16))*(( (ALGBRC(2)/CONSTS(13))*(1.00000 - STATES(3)))/((CONSTS(14)+1.00000) - STATES(3)) - STATES(3)/(CONSTS(15)+STATES(3)))
      ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(6))/(CONSTS(5) ** CONSTS(6)+STATES(2) ** CONSTS(6))
      ALGBRC(3) =  CONSTS(2)*(STATES(1) ** CONSTS(7)/(CONSTS(3) ** CONSTS(7)+STATES(1) ** CONSTS(7)))*(STATES(2) ** CONSTS(8)/(CONSTS(4) ** CONSTS(8)+STATES(2) ** CONSTS(8)))
      RATES(2) = (((CONSTS(11)+CONSTS(12)) - ALGBRC(1))+ALGBRC(3)+ CONSTS(9)*STATES(1)) -  CONSTS(10)*STATES(2)
      RATES(1) = (ALGBRC(1) - ALGBRC(3)) -  CONSTS(9)*STATES(1)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  CONSTS(17)*(STATES(2) ** CONSTS(19)/(CONSTS(18) ** CONSTS(19)+STATES(2) ** CONSTS(19)))
      ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(6))/(CONSTS(5) ** CONSTS(6)+STATES(2) ** CONSTS(6))
      ALGBRC(3) =  CONSTS(2)*(STATES(1) ** CONSTS(7)/(CONSTS(3) ** CONSTS(7)+STATES(1) ** CONSTS(7)))*(STATES(2) ** CONSTS(8)/(CONSTS(4) ** CONSTS(8)+STATES(2) ** CONSTS(8)))
      RETURN
      END