You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
When calculating values of derived units from other units when needed to do a calculation like multiplication or division there is an error in the computed values by mod2c and NEURON.
For example for:
UNITS {
R = 8.313424 (joule/degC)
J = (R-mole) (1)
test = (mole) (1)
}
/** constants used in nmodl from UNITS */
static const double R = 8.313424;
static const double J = 5.00646095255622339e+24;
static const double test = 6.02214075999999987e+23;
From the above we see that mole = 6.02214075999999987e+23, R = 8.313424 and if we calculate by hand J = R*mole we have: