Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
80b8d88c
Commit
80b8d88c
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
better map search
parent
6e0c43d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Geo/GModel.cpp
+6
-4
6 additions, 4 deletions
Geo/GModel.cpp
with
6 additions
and
4 deletions
Geo/GModel.cpp
+
6
−
4
View file @
80b8d88c
...
@@ -370,8 +370,9 @@ int GModel::setPhysicalName(std::string name, int dim, int number)
...
@@ -370,8 +370,9 @@ int GModel::setPhysicalName(std::string name, int dim, int number)
std
::
string
GModel
::
getPhysicalName
(
int
dim
,
int
number
)
std
::
string
GModel
::
getPhysicalName
(
int
dim
,
int
number
)
{
{
if
(
physicalNames
.
count
(
std
::
pair
<
int
,
int
>
(
dim
,
number
)))
std
::
map
<
std
::
pair
<
int
,
int
>
,
std
::
string
>::
iterator
it
=
return
physicalNames
[
std
::
pair
<
int
,
int
>
(
dim
,
number
)];
physicalNames
.
find
(
std
::
pair
<
int
,
int
>
(
dim
,
number
));
if
(
it
!=
physicalNames
.
end
())
return
it
->
second
;
return
""
;
return
""
;
}
}
...
@@ -386,8 +387,9 @@ int GModel::getPhysicalNumber(const int &dim, const std::string &name)
...
@@ -386,8 +387,9 @@ int GModel::getPhysicalNumber(const int &dim, const std::string &name)
std
::
string
GModel
::
getElementaryName
(
int
dim
,
int
number
)
std
::
string
GModel
::
getElementaryName
(
int
dim
,
int
number
)
{
{
if
(
elementaryNames
.
count
(
std
::
pair
<
int
,
int
>
(
dim
,
number
)))
std
::
map
<
std
::
pair
<
int
,
int
>
,
std
::
string
>::
iterator
it
=
return
elementaryNames
[
std
::
pair
<
int
,
int
>
(
dim
,
number
)];
elementaryNames
.
find
(
std
::
pair
<
int
,
int
>
(
dim
,
number
));
if
(
it
!=
elementaryNames
.
end
())
return
it
->
second
;
return
""
;
return
""
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment