Skip to content
Snippets Groups Projects
Unverified Commit c0800478 authored by boeschf's avatar boeschf Committed by GitHub
Browse files

consistent mechanism ids (#2057)

Mechanism ids are assigned by iterating through an unordered map within `fvm_mechanism_data`. This changes the container in question to an ordered `std::map`.
parent 27db9a7f
No related branches found
No related tags found
No related merge requests found
#pragma once
#include <map>
#include <unordered_map>
#include <utility>
#include <vector>
......@@ -290,7 +291,7 @@ ARB_ARBOR_API std::unordered_map<cell_gid_type, std::vector<fvm_gap_junction>> f
struct fvm_mechanism_data {
// Mechanism config, indexed by mechanism name.
std::unordered_map<std::string, fvm_mechanism_config> mechanisms;
std::map<std::string, fvm_mechanism_config> mechanisms;
// Ion config, indexed by ion name.
std::unordered_map<std::string, fvm_ion_config> ions;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment