37 #include "CombinedOdeSystem.hpp"
38 #include "CombinedOdeSystemInformation.hpp"
46 for (
unsigned i=0; i<odeSystems.size(); i++)
54 unsigned num_systems = odeSystems.size();
58 for (
unsigned i=0; i<num_systems; i++)
60 unsigned num_vars = odeSystems[i]->GetNumberOfStateVariables();
70 const std::map<unsigned, unsigned>& rVariableParameterMap,
75 new_map.
theMap = rVariableParameterMap;
76 unsigned var_system_index = 0;
89 const std::vector<double>& rY,
90 std::vector<double>& rDY)
96 for (
unsigned j=0; j<
mOdeSystems[i]->GetNumberOfStateVariables(); j++)
107 for (std::map<unsigned, unsigned>::iterator iter = r_var_param_map.begin();
108 iter != r_var_param_map.end();
112 mVariableParameterMaps[i].pParameterOdeSystem->SetParameter(iter->second, value);
126 for (
unsigned j=0; j<
mOdeSystems[i]->GetNumberOfStateVariables(); j++)
std::vector< AbstractOdeSystem * > mOdeSystems
void EvaluateYDerivatives(double time, const std::vector< double > &rY, std::vector< double > &rDY)
void Configure(const std::map< unsigned, unsigned > &rVariableParameterMap, AbstractOdeSystem *pVariableOdeSystem, AbstractOdeSystem *pParameterOdeSystem)
void ResetToInitialConditions()
std::vector< unsigned > mOffsets
AbstractOdeSystem * pParameterOdeSystem
std::vector< std::vector< double > > mWorkingStateVars
unsigned pVariableOdeSystemIndex
std::vector< std::vector< double > > mWorkingDerivs
boost::shared_ptr< AbstractOdeSystemInformation > mpSystemInfo
unsigned mNumberOfStateVariables
std::map< unsigned, unsigned > theMap
std::vector< struct VariableParameterMap > mVariableParameterMaps
CombinedOdeSystem(std::vector< AbstractOdeSystem * > odeSystems)