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 K1 in component phosphorylation (dimensionless).
C CONSTS(14) is K2 in component phosphorylation (dimensionless).
C CONSTS(15) is WT in component phosphorylation (micromolar).
C CONSTS(19) is vP in component phosphorylation (micromolar_min).
C ALGBRC(2) is vK in component kinase_reaction (micromolar_min).
C CONSTS(16) is vMK in component kinase_reaction (micromolar_min).
C STATES(3) is Wstar in component phosphorylation (dimensionless).
C CONSTS(17) is Ka in component kinase_reaction (micromolar).
C CONSTS(18) 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.454
      STATES(2) = 0.2281
      CONSTS(11) = 1
      CONSTS(12) = 2.4
      CONSTS(13) = 0.01
      CONSTS(14) = 0.01
      CONSTS(15) = 10
      CONSTS(16) = 100
      STATES(3) = 0.8916
      CONSTS(17) = 1
      CONSTS(18) = 4
      CONSTS(19) =  CONSTS(16)*(0.890000/20.0000)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  CONSTS(16)*(STATES(2) ** CONSTS(18)/(CONSTS(17) ** CONSTS(18)+STATES(2) ** CONSTS(18)))
      RATES(3) =  (CONSTS(19)/CONSTS(15))*(( (ALGBRC(2)/CONSTS(19))*(1.00000 - STATES(3)))/((CONSTS(13)+1.00000) - STATES(3)) - STATES(3)/(CONSTS(14)+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(16)*(STATES(2) ** CONSTS(18)/(CONSTS(17) ** CONSTS(18)+STATES(2) ** CONSTS(18)))
      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