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 1 entries in each of the rate and state variable arrays.
C There are a total of 5 entries in the constant variable array.
C
C
C CONSTS(5) is k in component rate_kinetics (per_sec).
C CONSTS(1) is E in component rate_kinetics (J_per_mol).
C CONSTS(2) is R in component rate_kinetics (J_per_mol_per_K).
C CONSTS(3) is T in component rate_kinetics (kelvin).
C CONSTS(4) is A in component rate_kinetics (per_sec).
C VOI is time in component rate_kinetics (second).
C STATES(1) is C in component rate_kinetics (conc).
C RATES(1) is d/dt C in component rate_kinetics (conc).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
CONSTS(1) = 1
CONSTS(2) = 8.3143
CONSTS(3) = 310
CONSTS(4) = 1
STATES(1) = 1
CONSTS(5) = CONSTS(4)*EXP(- (CONSTS(1)/( CONSTS(2)*CONSTS(3))))
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = - ( CONSTS(5)*STATES(1))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
