Move threshold check outside inner loop in exponential IAF models? #2822
Labels
I: Behavior changes
Introduces changes that produce different results for some users
S: Normal
Handle this with default priority
T: Discussion
Still searching for the right way to proceed / suggestions welcome
Projects
The threshold check is inside the GSL integrator "inner loop" for certain exponential IAF models, e.g.:
nest-simulator/models/aeif_psc_alpha.cpp
Line 472 in 99c366b
is inside
nest-simulator/models/aeif_psc_alpha.cpp
Line 456 in 99c366b
This makes sense because the membrane potential can diverge very fast, and placing the threshold check inside the inner loop makes the numerics potentially a bit more precise. However, this code arrangement is impossible to generate from NESTML.
This issue is to discuss whether having the threshold check inside the "inner loop" makes the most sense, or whether it is more consistent to have it outside that inner loop, which has the additional advantage of allowing the NESTML model to reproduce the NEST model exactly.
The text was updated successfully, but these errors were encountered: