Skip to content

Commit

Permalink
Guard warning output by config macro
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller authored and mattw-nws committed Jul 3, 2023
1 parent f2c806e commit f4d0ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/realizations/catchment/Bmi_Module_Formulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,9 @@ namespace realization {
//"type aware", but for now, this will do (but requires yet another copy)
if(values.size() == 1){
//FIXME this isn't generic broadcasting, but works for scalar implementations
#ifndef NGEN_QUIET
std::cerr << "WARN: broadcasting variable '" << var_name << "' from scalar to expected array\n";
#endif
values.resize(numItems, values[0]);
} else if (values.size() != numItems) {
throw std::runtime_error("Mismatch in item count for variable '" + var_name + "': model expects " +
Expand Down

0 comments on commit f4d0ff3

Please sign in to comment.