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
467baccf
Commit
467baccf
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix model name search
parent
402fdfff
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GModel.cpp
+3
-2
3 additions, 2 deletions
Geo/GModel.cpp
Post/PViewDataGModelIO.cpp
+4
-4
4 additions, 4 deletions
Post/PViewDataGModelIO.cpp
with
7 additions
and
6 deletions
Geo/GModel.cpp
+
3
−
2
View file @
467baccf
// $Id: GModel.cpp,v 1.8
1
2008-03-30
17:45:11
geuzaine Exp $
// $Id: GModel.cpp,v 1.8
2
2008-03-30
21:35:07
geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -76,7 +76,8 @@ GModel *GModel::current()
GModel
*
GModel
::
findByName
(
std
::
string
name
)
{
for
(
unsigned
int
i
=
0
;
i
<
list
.
size
();
i
++
)
// return last mesh with given name
for
(
int
i
=
list
.
size
()
-
1
;
i
>=
0
;
i
--
)
if
(
list
[
i
]
->
getName
()
==
name
)
return
list
[
i
];
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModelIO.cpp
+
4
−
4
View file @
467baccf
// $Id: PViewDataGModelIO.cpp,v 1.2
6
2008-03-30 2
0:4
5:
2
7 geuzaine Exp $
// $Id: PViewDataGModelIO.cpp,v 1.2
7
2008-03-30 2
1:3
5:
0
7 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -229,12 +229,12 @@ bool PViewDataGModel::readMED(std::string fileName, int fileIndex)
// create step data
if
(
!
pair
){
int
numCompMsh
=
(
numComp
==
1
)
?
1
:
(
numComp
<
3
)
?
3
:
9
;
GModel
*
m
=
GModel
::
findByName
(
meshName
);
if
(
!
m
){
Msg
(
GERROR
,
"Could not find mesh <<%s>>"
,
meshName
);
return
false
;
}
int
numCompMsh
=
(
numComp
==
1
)
?
1
:
(
numComp
<
3
)
?
3
:
9
;
while
(
step
>=
(
int
)
_steps
.
size
())
_steps
.
push_back
(
new
stepData
<
double
>
(
m
,
numCompMsh
));
_steps
[
step
]
->
setFileName
(
fileName
);
...
...
@@ -325,7 +325,7 @@ bool PViewDataGModel::readMED(std::string fileName, int fileIndex)
// before storing it, using med2msh()). Also: what should we
// do with Gauss point data?
for
(
int
j
=
0
;
j
<
numComp
*
mult
;
j
++
)
d
[
j
]
=
val
[
numComp
*
i
+
j
];
d
[
j
]
=
val
[
numComp
*
mult
*
i
+
j
];
double
s
=
ComputeScalarRep
(
_steps
[
step
]
->
getNumComponents
(),
d
);
_steps
[
step
]
->
setMin
(
std
::
min
(
_steps
[
step
]
->
getMin
(),
s
));
_steps
[
step
]
->
setMax
(
std
::
max
(
_steps
[
step
]
->
getMax
(),
s
));
...
...
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