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();
110 mVariableParameterMaps[i].pParameterOdeSystem->SetParameter(iter->second, value);
124 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)