36 #include "SteadyStateRunner.hpp"
43 boost::shared_ptr<RegularStimulus> p_reg_stim =
45 const double pacing_cycle_length = p_reg_stim->
GetPeriod();
46 double maximum_time_step = p_reg_stim->GetDuration();
49 std::vector<double> old_state_vars;
50 std::vector<double> new_state_vars;
66 const unsigned num_paces_to_analyse = (
mTwoPaceScan) ? 2u : 1u;
68 for (
unsigned i=0; i<
mMaxNumPaces; i=i+num_paces_to_analyse)
71 mpModel->Solve((pacing_cycle_length)*(
double)(i), (pacing_cycle_length)*(
double)(i+num_paces_to_analyse), maximum_time_step);
77 for (
unsigned j=0; j<old_state_vars.size(); j++)
79 temp += fabs(new_state_vars[j] - old_state_vars[j]);
93 old_state_vars = new_state_vars;
97 mpModel->SetMinimalReset(
false);
100 #endif // CHASTE_CVODE
boost::shared_ptr< AbstractCvodeCell > mpModel
virtual void RunToSteadyStateImplementation()
void CopyToStdVector(const VECTOR &rSrc, std::vector< double > &rDest)