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 0 entries in each of the rate and state variable arrays.
C There are a total of 3 entries in the constant variable array.
C
C
C CONSTS(3) is Ki in component Protocol (mM).
C CONSTS(1) is k_new in component Protocol (dimensionless).
C CONSTS(2) is protocol in component Protocol (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
CONSTS(1) = 104.7488
CONSTS(2) = 0
CONSTS(3) = TERNRY(CONSTS(2).EQ.1.00000, 150.000, TERNRY(CONSTS(2).EQ.2.00000, 148.000, TERNRY(CONSTS(2).EQ.0.00000, CONSTS(1), 125.000)
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
REAL FUNCTION TERNRY(TEST, VALA, VALB)
LOGICAL TEST
REAL VALA, VALB
IF (TEST) THEN
TERNRY = VALA
ELSE
TERNRY = VALB
ENDIF
RETURN
END
