File tree Expand file tree Collapse file tree 10 files changed +31
-32
lines changed Expand file tree Collapse file tree 10 files changed +31
-32
lines changed Original file line number Diff line number Diff line change @@ -384,9 +384,9 @@ nest::aeif_cond_alpha::init_buffers_()
384
384
B_.logger_ .reset ();
385
385
386
386
B_.step_ = Time::get_resolution ().get_ms ();
387
-
388
- // We must integrate this model with high-precision to obtain decent results
389
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
387
+ B_. IntegrationStep_ =
388
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
389
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
390
390
391
391
if ( not B_.s_ )
392
392
{
Original file line number Diff line number Diff line change @@ -386,9 +386,9 @@ nest::aeif_cond_alpha_astro::init_buffers_()
386
386
B_.logger_ .reset ();
387
387
388
388
B_.step_ = Time::get_resolution ().get_ms ();
389
-
390
- // We must integrate this model with high-precision to obtain decent results
391
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
389
+ B_. IntegrationStep_ =
390
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
391
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
392
392
393
393
if ( not B_.s_ )
394
394
{
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ aeif_cond_alpha_multisynapse::Buffers_::Buffers_( aeif_cond_alpha_multisynapse&
347
347
, c_( nullptr )
348
348
, e_( nullptr )
349
349
, step_( Time::get_resolution().get_ms() )
350
- , IntegrationStep_( std::min( 0.01 , step_ ) )
350
+ , IntegrationStep_( step_ )
351
351
, I_stim_( 0.0 )
352
352
{
353
353
}
@@ -416,9 +416,9 @@ aeif_cond_alpha_multisynapse::init_buffers_()
416
416
B_.logger_ .reset ();
417
417
418
418
B_.step_ = Time::get_resolution ().get_ms ();
419
-
420
- // We must integrate this model with high-precision to obtain decent results
421
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
419
+ B_. IntegrationStep_ =
420
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
421
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
422
422
423
423
if ( not B_.c_ )
424
424
{
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ aeif_cond_beta_multisynapse::Buffers_::Buffers_( aeif_cond_beta_multisynapse& n
355
355
, c_( nullptr )
356
356
, e_( nullptr )
357
357
, step_( Time::get_resolution().get_ms() )
358
- , IntegrationStep_( std::min( 0.01 , step_ ) )
358
+ , IntegrationStep_( step_ )
359
359
, I_stim_( 0.0 )
360
360
{
361
361
}
@@ -424,9 +424,9 @@ aeif_cond_beta_multisynapse::init_buffers_()
424
424
B_.logger_ .reset ();
425
425
426
426
B_.step_ = Time::get_resolution ().get_ms ();
427
-
428
- // We must integrate this model with high-precision to obtain decent results
429
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
427
+ B_. IntegrationStep_ =
428
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
429
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
430
430
431
431
if ( not B_.c_ )
432
432
{
Original file line number Diff line number Diff line change @@ -379,9 +379,9 @@ nest::aeif_cond_exp::init_buffers_()
379
379
B_.logger_ .reset ();
380
380
381
381
B_.step_ = Time::get_resolution ().get_ms ();
382
-
383
- // We must integrate this model with high-precision to obtain decent results
384
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
382
+ B_. IntegrationStep_ =
383
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
384
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
385
385
386
386
if ( not B_.s_ )
387
387
{
Original file line number Diff line number Diff line change @@ -374,9 +374,9 @@ nest::aeif_psc_alpha::init_buffers_()
374
374
B_.logger_ .reset ();
375
375
376
376
B_.step_ = Time::get_resolution ().get_ms ();
377
-
378
- // We must integrate this model with high-precision to obtain decent results
379
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
377
+ B_. IntegrationStep_ =
378
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
379
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
380
380
381
381
if ( not B_.s_ )
382
382
{
Original file line number Diff line number Diff line change @@ -351,9 +351,9 @@ nest::aeif_psc_delta::init_buffers_()
351
351
B_.logger_ .reset ();
352
352
353
353
B_.step_ = Time::get_resolution ().get_ms ();
354
-
355
- // We must integrate this model with high-precision to obtain decent results
356
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
354
+ B_. IntegrationStep_ =
355
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
356
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
357
357
358
358
if ( not B_.s_ )
359
359
{
Original file line number Diff line number Diff line change @@ -417,9 +417,9 @@ nest::aeif_psc_delta_clopath::init_buffers_()
417
417
B_.logger_ .reset ();
418
418
419
419
B_.step_ = Time::get_resolution ().get_ms ();
420
-
421
- // We must integrate this model with high-precision to obtain decent results
422
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
420
+ B_. IntegrationStep_ =
421
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
422
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
423
423
424
424
if ( not B_.s_ )
425
425
{
Original file line number Diff line number Diff line change @@ -369,9 +369,9 @@ nest::aeif_psc_exp::init_buffers_()
369
369
B_.logger_ .reset ();
370
370
371
371
B_.step_ = Time::get_resolution ().get_ms ();
372
-
373
- // We must integrate this model with high-precision to obtain decent results
374
- B_. IntegrationStep_ = std::min ( 0.01 , B_. step_ );
372
+ B_. IntegrationStep_ =
373
+ B_. step_ ; // reasonable initial value for numerical integrator step size; this will anyway be overwritten by
374
+ // gsl_odeiv_evolve_apply(), but it might confuse the integrator if it contains uninitialised data
375
375
376
376
if ( not B_.s_ )
377
377
{
Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ nest::glif_cond::Buffers_::Buffers_( glif_cond& n )
465
465
, c_( nullptr )
466
466
, e_( nullptr )
467
467
, step_( Time::get_resolution().get_ms() )
468
- , IntegrationStep_( std::min( 0.01 , step_ ) )
468
+ , IntegrationStep_( step_ )
469
469
, I_( 0.0 )
470
470
{
471
471
}
@@ -534,8 +534,7 @@ nest::glif_cond::init_buffers_()
534
534
B_.logger_ .reset (); // includes resize
535
535
536
536
B_.step_ = Time::get_resolution ().get_ms ();
537
- // We must integrate this model with high-precision to obtain decent results
538
- B_.IntegrationStep_ = std::min ( 0.01 , B_.step_ );
537
+ B_.IntegrationStep_ = B_.step_ ; // initial value for numerical integrator step size; this will anyway be overwritten by gsl_odeiv_evolve_apply()
539
538
540
539
if ( not B_.c_ )
541
540
{
You can’t perform that action at this time.
0 commit comments