Generated Code

The following is c code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

/*
   There are a total of 0 entries in the algebraic variable array.
   There are a total of 0 entries in each of the rate and state variable arrays.
   There are a total of 3 entries in the constant variable array.
 */
/*
 * CONSTANTS[2] is Ki in component Protocol (mM).
 * CONSTANTS[0] is k_new in component Protocol (dimensionless).
 * CONSTANTS[1] is protocol in component Protocol (dimensionless).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 104.7488;
CONSTANTS[1] = 0;
CONSTANTS[2] = (CONSTANTS[1]==1.00000 ? 150.000 : CONSTANTS[1]==2.00000 ? 148.000 : CONSTANTS[1]==0.00000 ? CONSTANTS[0] : 125.000);
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}