diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 7a7cef1ad0cc09c0398370ef604a0c27389b9ab7..e6810fca264f383dabece93ceaeeefda8ff3dd89 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -312,11 +312,11 @@ std::string GModel::getPhysicalName(int dim, int number) 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) - if(dim==physIt->first.first && name==physIt->second) - return physIt->first.second; + for(piter physIt = firstPhysicalName(); physIt != lastPhysicalName(); ++physIt) + if(dim == physIt->first.first && name == physIt->second) + return physIt->first.second; Msg::Warning("No physical group found with the name '%s'", name.c_str()); return -1; }