Commit ad3967ee authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Changing the code for the name of unknown params.

They should not call the get_name function
parent 8e988f2e
......@@ -362,7 +362,7 @@ void params::from_cartesian(const double* invec, params::input outtype,
break;
default:
std::cerr << "<<ERROR>> Transformation not implemented, " << get_name(outtype) << " " << __FILE__ << ":" << __LINE__ << std::endl;
std::cerr << "<<ERROR>> Transformation not implemented, " << outtype << ", " << __FILE__ << ":" << __LINE__ << std::endl;
assert(false);
break;
}
......@@ -390,7 +390,8 @@ std::string params::get_name(const params::input param)
return it->second.name;
}
std::cerr << "<<ERROR>> Unknown parametrization, " << get_name(param) << " " << __FILE__ << ":" << __LINE__ << std::endl;
std::cerr << "<<ERROR>> Unknown parametrization, n°" << param << ", "<< __FILE__ << ":" << __LINE__ << std::endl;
assert(false);
return std::string("UNKNOWN_INPUT");
}
......
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