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
If we have derivative block with derivimplicit method like :
DERIVATIVE states {
IF (tau_m<taumin) {
tau_m = taumin
}
m' = (m_inf-m)/tau_m
}
The SympySolver generates :
DERIVATIVE states {
IF (tau_m<taumin) {
LOCAL tmp_m_old
tau_m = taumin
{
X[0] = m
}{
tmp_m_old = m
m = (dt*m_inf+tau_m*tmp_m_old)/(dt+tau_m)
}{
m = X[0]
}
}
m' = (m_inf-m)/tau_m
}
This is because I thought it's good idea to track last statement block and then inset statement there. But as we can see, it fails in above case as if's statement block gets used.
The text was updated successfully, but these errors were encountered:
- instead of last statementblock, keep track of block
where ODEs are found
- Todo : support for ODEs from different blocks, see #85Resolves#84
Change-Id: I877ce3f1f8662b5071dee00354c29f96227d6012
If we have derivative block with derivimplicit method like :
The SympySolver generates :
This is because I thought it's good idea to track
last statement block
and then inset statement there. But as we can see, it fails in above case as if's statement block gets used.The text was updated successfully, but these errors were encountered: