Skip to content

Commit

Permalink
#3 add reaction ids
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 29, 2024
1 parent cddfb6e commit 9b4fea8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/copasijs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,16 @@ std::vector<std::string> getReactionNames()
return names;
}

std::vector<std::string> getReactionIds()
{
std::vector<std::string> ids;
for (auto& [key, value] : mReactionsIdMap)
{
ids.push_back(key);
}
return ids;
}

std::vector<double> getReactionRates()
{
std::vector<double> rates;
Expand Down

0 comments on commit 9b4fea8

Please sign in to comment.