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 1 entries in each of the rate and state variable arrays.
C There are a total of 6 entries in the constant variable array.
C
C
C VOI is t in component y_channel (millisecond).
C STATES(1) is y in component y_channel (dimensionless).
C CONSTS(1) is V in component y_channel (millivolt).
C CONSTS(2) is E_y in component y_channel (millivolt).
C ALGBRC(1) is i_y in component y_channel (microA_per_cm2).
C CONSTS(3) is g_y in component y_channel (milliS_per_cm2).
C CONSTS(4) is gamma in component y_channel (dimensionless).
C CONSTS(5) is alpha_y in component y_channel (per_millisecond).
C CONSTS(6) is beta_y in component y_channel (per_millisecond).
C RATES(1) is d/dt y in component y_channel (dimensionless).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0
      CONSTS(1) = 0
      CONSTS(2) = -85
      CONSTS(3) = 36
      CONSTS(4) = 4
      CONSTS(5) = 1
      CONSTS(6) = 2
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) =  CONSTS(5)*(1.00000 - STATES(1)) -  CONSTS(6)*STATES(1)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(3)*STATES(1) ** CONSTS(4)*(CONSTS(1) - CONSTS(2))
      RETURN
      END