Skip to content
Snippets Groups Projects
Commit b7b631df authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent 0f2f42ab
No related branches found
No related tags found
No related merge requests found
...@@ -312,11 +312,11 @@ std::string GModel::getPhysicalName(int dim, int number) ...@@ -312,11 +312,11 @@ std::string GModel::getPhysicalName(int dim, int number)
return ""; return "";
} }
int GModel::getPhysicalNumber(const int &dim, const std::string & name) int GModel::getPhysicalNumber(const int &dim, const std::string &name)
{ {
for(piter physIt=firstPhysicalName();physIt !=lastPhysicalName();++physIt) for(piter physIt = firstPhysicalName(); physIt != lastPhysicalName(); ++physIt)
if(dim==physIt->first.first && name==physIt->second) if(dim == physIt->first.first && name == physIt->second)
return physIt->first.second; return physIt->first.second;
Msg::Warning("No physical group found with the name '%s'", name.c_str()); Msg::Warning("No physical group found with the name '%s'", name.c_str());
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment