Changeset 31587 in project for release/4/nemo/trunk/templates/NEST-nodes.tmpl
- Timestamp:
- 10/05/14 05:49:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/4/nemo/trunk/templates/NEST-nodes.tmpl
r31508 r31587 98 98 if (check_flag(&status, "CVodeInit", 1)) throw CVodeSolverFailure (get_name(), status); 99 99 100 {% if haskey( defaults,"V_t") %}100 {% if haskey("V_t" in defaultDefs) %} 101 101 102 102 /* Spike event handler (detects zero-crossing of V-V_t) */ … … 248 248 if (check_flag(&status, "IDAInit", 1)) throw IDASolverFailure (get_name(), status); 249 249 250 {% if haskey(defaults,"V_t") %}250 {% if ("V_t" in defaultDefs) %} 251 251 252 252 /* Spike event handler (detects zero-crossing of V-V_t) */ … … 391 391 { 392 392 B_.logger_.init(); 393 #{(if iv (sprintf "V_.U_old_ = S_.y_[~A];" iv) "")} 394 #{(if (lookup-def 't_ref defaults) 395 "V_.RefractoryCounts_ = Time(Time::ms(P_.t_ref)).get_steps();" 396 "V_.RefractoryCounts_ = 0;")} 397 } 398 399 393 {% if haskey(stateIndexMap,"v") %}V_.U_old_ = S_.y_[{{attr(stateIndexMap,"v")}}];{% endif %} 394 {% if ("t_ref" in defaultDefs) %} 395 V_.RefractoryCounts_ = Time(Time::ms(P_.t_ref)).get_steps(); 396 {% else %} 397 V_.RefractoryCounts_ = 0; 400 398 {% endif %} 399 } 400 401 402 {% endif %}
Note: See TracChangeset
for help on using the changeset viewer.