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
66526457
Commit
66526457
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
2627e48b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Post/PViewDataGModel.cpp
+4
-2
4 additions, 2 deletions
Post/PViewDataGModel.cpp
Post/PViewDataGModel.h
+2
-2
2 additions, 2 deletions
Post/PViewDataGModel.h
with
6 additions
and
4 deletions
Post/PViewDataGModel.cpp
+
4
−
2
View file @
66526457
// $Id: PViewDataGModel.cpp,v 1.3
2
2008-03-20 1
0:52:37
geuzaine Exp $
// $Id: PViewDataGModel.cpp,v 1.3
3
2008-03-20 1
1:05:08
geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -206,6 +206,8 @@ GEntity *PViewDataGModel::getEntity(int step, int ent)
bool
PViewDataGModel
::
getValue
(
int
step
,
int
dataIndex
,
int
comp
,
double
&
val
)
{
if
(
dataIndex
<
0
||
dataIndex
>=
(
int
)
_steps
[
step
]
->
getNumData
())
return
false
;
val
=
_steps
[
step
]
->
getData
(
dataIndex
)[
comp
];
double
*
d
=
_steps
[
step
]
->
getData
(
dataIndex
);
if
(
!
d
)
return
false
;
val
=
d
[
comp
];
return
true
;
}
This diff is collapsed.
Click to expand it.
Post/PViewDataGModel.h
+
2
−
2
View file @
66526457
...
...
@@ -154,9 +154,9 @@ class PViewDataGModel : public PViewData {
// create old-style list-based dataset from this one
//PViewDataList *convertToPViewDataList();
// direct access to GModel entities and direct access to value by
// dataIndex
// direct access to GModel entities
GEntity
*
getEntity
(
int
step
,
int
ent
);
// direct access to value by dataIndex
bool
getValue
(
int
step
,
int
dataIndex
,
int
comp
,
double
&
val
);
// I/O routines
...
...
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