36 #include "AbstractSteadyStateRunner.hpp"
50 if (!boost::dynamic_pointer_cast<RegularStimulus>(
mpModel->GetStimulusFunction()) )
52 EXCEPTION(
"Steady State approximations only work for models with RegularStimulus objects.");
59 std::cout <<
"Steady state detected after " <<
GetNumEvaluations() <<
" paces." << std::endl;
64 std::cout <<
"Steady state not reached after "<<
GetNumEvaluations() <<
" paces." << std::endl;
65 WARNING(
"Model " <<
mpModel->GetSystemName() <<
" did not reach steady state within " <<
mMaxNumPaces <<
" paces.");
81 EXCEPTION(
"Please set a maximum number of paces that is positive");
86 #endif // CHASTE_CVODE
AbstractSteadyStateRunner()
#define EXCEPTION(message)
boost::shared_ptr< AbstractCvodeCell > mpModel
void SetMaxNumPaces(unsigned numPaces)
virtual void RunToSteadyStateImplementation()=0
unsigned GetNumEvaluations()