Skip to content

Commit

Permalink
Merge fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Aug 3, 2023
1 parent 766d1a1 commit 25069d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arbor/fvm_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ fvm_cv_discretize(const cable_cell& cell, const cable_cell_parameter_set& global
auto sc = ie->eval(provider, cable);
if (def <= 0.0 || std::isnan(def)) {
throw make_cc_error("Illegal diffusivity '{}' for ion '{}' at cable {}."
" Please check your expressions.", sc, ion, cable);
" Please check your expressions.", sc, ion, to_string(cable));
}
return sc;
};
Expand Down
6 changes: 3 additions & 3 deletions arbor/mechcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ ARB_ARBOR_API const mechanism_catalogue load_catalogue(const std::filesystem::pa
throw bad_catalogue_error{e.what(), {e}};
}
if (!get_catalogue) {
throw bad_catalogue_error{fmt::format("Unusable symbol 'get_catalogue' in shared object '{}'", fn)};
throw bad_catalogue_error{fmt::format("Unusable symbol 'get_catalogue' in shared object '{}'", fn.string())};
}
/* The DSO handle is not freed here: handles will be retained until
* termination since the mechanisms provided by the catalogue may have a
Expand All @@ -615,14 +615,14 @@ ARB_ARBOR_API const mechanism_catalogue load_catalogue(const std::filesystem::pa
int count = -1;
auto mechs = (arb_mechanism*)get_catalogue(&count);
if (count <= 0) {
throw bad_catalogue_error{fmt::format("Invalid mechanism count {} in shared object '{}'", count, fn)};
throw bad_catalogue_error{fmt::format("Invalid mechanism count {} in shared object '{}'", count, fn.string())};
}
mechanism_catalogue result;
for(int ix = 0; ix < count; ++ix) {
auto type = mechs[ix].type();
auto name = std::string{type.name};
if (name.empty()) {
throw bad_catalogue_error{fmt::format("Empty name for mechanism in '{}'", fn)};
throw bad_catalogue_error{fmt::format("Empty name for mechanism in '{}'", fn.string())};
}
auto icpu = mechs[ix].i_cpu();
auto igpu = mechs[ix].i_gpu();
Expand Down

0 comments on commit 25069d9

Please sign in to comment.