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 2 entries in the constant variable array.
C
C
C VOI is t in component main (dimensionless).
C STATES(1) is y in component main (dimensionless).
C CONSTS(1) is a in component main (dimensionless).
C CONSTS(2) is b in component main (dimensionless).
C RATES(1) is d/dt y in component main (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 5
CONSTS(1) = 1
CONSTS(2) = 2
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = - CONSTS(1)*STATES(1)+CONSTS(2)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
