37#include "CombinedOdeSystem.hpp"
38#include "CombinedOdeSystemInformation.hpp"
44 for (
unsigned i=0; i<odeSystems.size(); i++)
52 unsigned num_systems = odeSystems.size();
56 for (
unsigned i=0; i<num_systems; i++)
58 unsigned num_vars = odeSystems[i]->GetNumberOfStateVariables();
68 const std::map<unsigned, unsigned>& rVariableParameterMap,
73 new_map.
theMap = rVariableParameterMap;
74 unsigned var_system_index = 0;
87 const std::vector<double>& rY,
88 std::vector<double>& rDY)
94 for (
unsigned j=0; j<
mOdeSystems[i]->GetNumberOfStateVariables(); j++)
105 for (std::map<unsigned, unsigned>::iterator iter = r_var_param_map.begin();
106 iter != r_var_param_map.end();
124 for (
unsigned j=0; j<
mOdeSystems[i]->GetNumberOfStateVariables(); j++)
void ResetToInitialConditions()
void SetParameter(const std::string &rName, double value)
unsigned mNumberOfStateVariables
boost::shared_ptr< AbstractOdeSystemInformation > mpSystemInfo
std::vector< struct VariableParameterMap > mVariableParameterMaps
void EvaluateYDerivatives(double time, const std::vector< double > &rY, std::vector< double > &rDY)
std::vector< std::vector< double > > mWorkingDerivs
std::vector< AbstractOdeSystem * > mOdeSystems
std::vector< unsigned > mOffsets
CombinedOdeSystem(std::vector< AbstractOdeSystem * > odeSystems)
void Configure(const std::map< unsigned, unsigned > &rVariableParameterMap, AbstractOdeSystem *pVariableOdeSystem, AbstractOdeSystem *pParameterOdeSystem)
std::vector< std::vector< double > > mWorkingStateVars
AbstractOdeSystem * pParameterOdeSystem
unsigned pVariableOdeSystemIndex
std::map< unsigned, unsigned > theMap