C C There are a total of 0 entries in the algebraic variable array. C There are a total of 2 entries in each of the rate and state variable arrays. C There are a total of 4 entries in the constant variable array. C C C VOI is t in component all (dimensionless). C STATES(1) is x in component all (dimensionless). C STATES(2) is y in component all (dimensionless). C CONSTS(1) is A in component all (dimensionless). C CONSTS(2) is B in component all (dimensionless). C CONSTS(3) is C in component all (dimensionless). C CONSTS(4) is D in component all (dimensionless). C RATES(1) is d/dt x in component all (dimensionless). C RATES(2) is d/dt y in component all (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 3 STATES(2) = 6 CONSTS(1) = 1 CONSTS(2) = 1 CONSTS(3) = 1 CONSTS(4) = 1 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(1)*STATES(1) - CONSTS(2)*STATES(1)*STATES(2) RATES(2) = - CONSTS(3)*STATES(2)+ CONSTS(4)*STATES(1)*STATES(2) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END