@@ -61,7 +61,7 @@ RecordablesMap< astrocyte_lr_1994 >::create()
6161{
6262 // use standard names whereever you can for consistency!
6363 insert_ ( names::IP3, &astrocyte_lr_1994::get_y_elem_< astrocyte_lr_1994::State_::IP3 > );
64- insert_ ( names::Ca , &astrocyte_lr_1994::get_y_elem_< astrocyte_lr_1994::State_::Ca > );
64+ insert_ ( names::Ca_astro , &astrocyte_lr_1994::get_y_elem_< astrocyte_lr_1994::State_::Ca_astro > );
6565 insert_ ( names::h_IP3R, &astrocyte_lr_1994::get_y_elem_< astrocyte_lr_1994::State_::h_IP3R > );
6666}
6767
@@ -85,7 +85,7 @@ astrocyte_lr_1994_dynamics( double time, const double y[], double f[], void* pno
8585 const double & ip3 = y[ S::IP3 ];
8686 // Ca_tot_ corresponds to the c_0 (total [Ca++] in terms of cytosolic vol)
8787 // in De Young & Keizer (1992) and Li & Rinzel (1994)
88- const double & calc = std::max ( 0.0 , std::min ( y[ S::Ca ], node.P_ .Ca_tot_ ) ); // keep calcium within limits
88+ const double & calc = std::max ( 0.0 , std::min ( y[ S::Ca_astro ], node.P_ .Ca_tot_ ) ); // keep calcium within limits
8989 const double & h_ip3r = y[ S::h_IP3R ];
9090
9191 const double alpha_h_ip3r =
@@ -101,7 +101,7 @@ astrocyte_lr_1994_dynamics( double time, const double y[], double f[], void* pno
101101 * std::pow ( h_ip3r, 3 ) * ( calc_ER - calc );
102102
103103 f[ S::IP3 ] = ( node.P_ .IP3_0_ - ip3 ) / node.P_ .tau_IP3_ ;
104- f[ S::Ca ] = J_channel - J_pump + J_leak + node.B_ .J_noise_ ;
104+ f[ S::Ca_astro ] = J_channel - J_pump + J_leak + node.B_ .J_noise_ ;
105105 f[ S::h_IP3R ] = alpha_h_ip3r * ( 1.0 - h_ip3r ) - beta_h_ip3r * h_ip3r;
106106
107107 return GSL_SUCCESS;
@@ -137,7 +137,7 @@ nest::astrocyte_lr_1994::State_::State_( const Parameters_& p )
137137{
138138 // initial values based on Li & Rinzel (1994) and Nadkarni & Jung (2003)
139139 y_[ IP3 ] = p.IP3_0_ ;
140- y_[ Ca ] = 0.073 ;
140+ y_[ Ca_astro ] = 0.073 ;
141141 y_[ h_IP3R ] = 0.793 ;
142142}
143143
@@ -278,22 +278,22 @@ void
278278nest::astrocyte_lr_1994::State_::get ( DictionaryDatum& d ) const
279279{
280280 def< double >( d, names::IP3, y_[ IP3 ] );
281- def< double >( d, names::Ca , y_[ Ca ] );
281+ def< double >( d, names::Ca_astro , y_[ Ca_astro ] );
282282 def< double >( d, names::h_IP3R, y_[ h_IP3R ] );
283283}
284284
285285void
286286nest::astrocyte_lr_1994::State_::set ( const DictionaryDatum& d, const Parameters_&, Node* node )
287287{
288288 updateValueParam< double >( d, names::IP3, y_[ IP3 ], node );
289- updateValueParam< double >( d, names::Ca , y_[ Ca ], node );
289+ updateValueParam< double >( d, names::Ca_astro , y_[ Ca_astro ], node );
290290 updateValueParam< double >( d, names::h_IP3R, y_[ h_IP3R ], node );
291291
292292 if ( y_[ IP3 ] < 0 )
293293 {
294294 throw BadProperty ( " IP3 concentration must be non-negative." );
295295 }
296- if ( y_[ Ca ] < 0 )
296+ if ( y_[ Ca_astro ] < 0 )
297297 {
298298 throw BadProperty ( " Calcium concentration must be non-negative." );
299299 }
@@ -465,15 +465,15 @@ nest::astrocyte_lr_1994::update( Time const& origin, const long from, const long
465465 }
466466
467467 // keep calcium within limits
468- S_.y_ [ State_::Ca ] = std::max ( 0.0 , std::min ( S_.y_ [ State_::Ca ], P_.Ca_tot_ ) );
468+ S_.y_ [ State_::Ca_astro ] = std::max ( 0.0 , std::min ( S_.y_ [ State_::Ca_astro ], P_.Ca_tot_ ) );
469469
470470 // this is to add the incoming spikes to IP3
471471 S_.y_ [ State_::IP3 ] += P_.delta_IP3_ * B_.spike_exc_ .get_value ( lag );
472472
473473 // SIC generation according to Nadkarni & Jung, 2003
474474 // Suprathreshold log of calcium concentration determines SIC generation
475475 // 1000.0: change unit to nM as in the original paper
476- const double calc_thr = ( S_.y_ [ State_::Ca ] - P_.SIC_th_ ) * 1000.0 ;
476+ const double calc_thr = ( S_.y_ [ State_::Ca_astro ] - P_.SIC_th_ ) * 1000.0 ;
477477 const double sic_value = calc_thr > 1.0 ? std::log ( calc_thr ) * P_.SIC_scale_ : 0.0 ;
478478 B_.sic_values [ lag ] = sic_value;
479479
0 commit comments