36 #include "AbstractSteadyStateRunner.hpp"
44 mSuppressOutput(false)
51 if (!boost::dynamic_pointer_cast<RegularStimulus>(
mpModel->GetStimulusFunction()))
53 EXCEPTION(
"Steady State approximations only work for models with RegularStimulus objects.");
62 std::cout <<
"Steady state detected after " <<
GetNumEvaluations() <<
" paces." << std::endl;
70 std::cout <<
"Steady state not reached after " <<
GetNumEvaluations() <<
" paces." << std::endl;
72 WARNING(
"Model " <<
mpModel->GetSystemName() <<
" did not reach steady state within " <<
mMaxNumPaces <<
" paces.");
91 EXCEPTION(
"Please set a maximum number of paces that is positive");
96 #endif // CHASTE_CVODE
AbstractSteadyStateRunner()
#define EXCEPTION(message)
void SuppressOutput(bool suppress=true)
boost::shared_ptr< AbstractCvodeCell > mpModel
void SetMaxNumPaces(unsigned numPaces)
virtual void RunToSteadyStateImplementation()=0
unsigned GetNumEvaluations()