if (op_val == _customOption2value.end())
{
std::string msg = "Unknown MG-Hybrid option: <" + optionName + ">";
- std::cout << msg << std::endl;
+ MESSAGE(msg);
throw std::invalid_argument(msg);
}
}
if (op_val != _defaultOptionValues.end())
val = op_val->second;
}
- std::cout << "GetOptionValue " << optionName << " = " << val << std::endl;
+ MESSAGE("GetOptionValue " << optionName << " = " << val);
return val;
}
bool SetParam( const std::string& param, const std::string& value )
{
status_t ret = hybrid_set_param( _session, param.c_str(), value.c_str() );
- std::cout << param << " = " << value << std::endl;
+ MESSAGE(param << " = " << value);
return ( ret == STATUS_OK );
}
if ( param=="boundary_layer_imprinting_tags" )
{
ret = hybrid_set_boundary_layer_imprinting_tag(_session, tag);
- std::cout << "imprinting_tag " << tag << std::endl;
+ MESSAGE("imprinting " << tag);
}
else if ( param=="boundary_layer_snapping_tags" )
{
ret = hybrid_set_boundary_layer_snapping_tag(_session, tag);
- std::cout << "snapping_tag " << tag << std::endl;
+ MESSAGE("snapping " << tag);
}
else if ( param=="boundary_layer_surface_tags" )
{
ret = hybrid_set_initial_height_on_surface_tag(_session, tag, stod(size));
- std::cout << "surface_tag: " << tag << " , hegith: " << stod(size) << std::endl;
+ MESSAGE("height " << tag << " = " << stod(size));
}
if ( ret != STATUS_OK )
{
- std::cout << "PBBBBBBBBBBBBBBBBBBBBBB STATUS not OK ";
+ MESSAGE("PBBBBBBBBBBBBBBBBBBBBBB STATUS not OK ");
return false;
}
}