Commit 0b74d964 authored by Caitlin Ross's avatar Caitlin Ross

added tw_error when trying to collect model-level instrumentation for model...

added tw_error when trying to collect model-level instrumentation for model that hasn't implemented it
parent fd856baf
......@@ -600,6 +600,8 @@ const tw_lptype* model_net_get_lp_type(int net_id)
const st_model_types* model_net_get_model_stat_type(int net_id)
{
if (!method_array[net_id]->mn_get_model_stat_types)
tw_error(TW_LOC, "mn_get_model_stat_types not defined for network model with net_id: %d\n", net_id);
return method_array[net_id]->mn_get_model_stat_types();
}
......
Markdown is supported
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