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 3 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 VOI is t in component Main (dimensionless). C STATES(1) is x in component Main (dimensionless). C STATES(2) is y in component Main (dimensionless). C STATES(3) is z in component Main (dimensionless). C CONSTS(1) is beta in component Main (dimensionless). C CONSTS(2) is rho in component Main (dimensionless). C CONSTS(3) is sigma in component Main (dimensionless). C RATES(1) is d/dt x in component Main (dimensionless). C RATES(2) is d/dt y in component Main (dimensionless). C RATES(3) is d/dt z in component Main (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0 STATES(2) = 1 STATES(3) = 1.05 CONSTS(1) = 8.00000/3.00000 CONSTS(2) = 28.0000 CONSTS(3) = 10.0000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(3)*(STATES(2) - STATES(1)) RATES(2) = STATES(1)*(CONSTS(2) - STATES(3)) - STATES(2) RATES(3) = STATES(1)*STATES(2) - CONSTS(1)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END