Skip to content

Commit

Permalink
Fix two warnings, one serious about not returning
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Mar 18, 2024
1 parent 0dfb76a commit f44f553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/teqp/models/multifluid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ inline auto multifluidfactory(const nlohmann::json& spec) {
else if (j.is_string()){
const std::string& s = j;
if (s.find("PATH::") == 0){
load_a_JSON_file(s.substr(6, s.size()-6));
return load_a_JSON_file(s.substr(6));
}
else{
try{
Expand Down
3 changes: 2 additions & 1 deletion src/tests/catch_test_multifluid_RPinterop.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ TEST_CASE("Check RPinterop conversion Fij instead of F in BIP", "[RPinterop]") {
}

TEST_CASE("Check RPinterop departure present but empty", "[RPinterop]") {
auto [BIP, DEP] = RPinterop::HMXBNCfile("../doc/source/models/HMX.BNC").make_jsons();
nlohmann::json BIP, DEP;
std::tie(BIP, DEP) = RPinterop::HMXBNCfile("../doc/source/models/HMX.BNC").make_jsons();
auto get_w_dep = [&](nlohmann::json dep){
nlohmann::json model = {
{"components", {
Expand Down

0 comments on commit f44f553

Please sign in to comment.