From b7b631df2bb419778b519ef1da17b3e80e4b7ef4 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 8 Jul 2009 15:40:48 +0000 Subject: [PATCH] pp --- Geo/GModel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index 7a7cef1ad0..e6810fca26 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; } -- GitLab