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
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
5297095f
Commit
5297095f
authored
Jan 23, 2013
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix bugs with sparse steps
parent
6812e27c
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Fltk/pluginWindow.cpp
+1
-1
1 addition, 1 deletion
Fltk/pluginWindow.cpp
Plugin/Levelset.cpp
+2
-2
2 additions, 2 deletions
Plugin/Levelset.cpp
Post/PViewDataGModel.cpp
+4
-2
4 additions, 2 deletions
Post/PViewDataGModel.cpp
Post/PViewDataGModelIO.cpp
+1
-3
1 addition, 3 deletions
Post/PViewDataGModelIO.cpp
with
8 additions
and
8 deletions
Fltk/pluginWindow.cpp
+
1
−
1
View file @
5297095f
...
...
@@ -315,7 +315,7 @@ pluginWindow::pluginWindow(int deltaFontSize)
browser
->
box
(
FL_FLAT_BOX
);
browser
->
has_scrollbar
(
Fl_Browser_
::
VERTICAL
);
view_browser
=
new
Fl_Multi_Browser
(
L1
,
0
,
L2
,
height
);
view_browser
=
new
Fl_Multi_Browser
(
L1
+
1
,
0
,
L2
-
1
,
height
);
view_browser
->
has_scrollbar
(
Fl_Browser_
::
VERTICAL
);
view_browser
->
callback
(
plugin_browser_cb
);
view_browser
->
box
(
FL_FLAT_BOX
);
...
...
This diff is collapsed.
Click to expand it.
Plugin/Levelset.cpp
+
2
−
2
View file @
5297095f
...
...
@@ -291,7 +291,7 @@ void GMSH_LevelsetPlugin::_cutAndAddElements(PViewData *vdata, PViewData *wdata,
// check which edges cut the iso and interpolate the value
if
(
wstep
<
0
)
otherstep
=
step
;
//
if(!wdata->hasTimeStep(otherstep)) continue;
if
(
!
wdata
->
hasTimeStep
(
otherstep
))
continue
;
int
np
=
0
;
double
xp
[
12
],
yp
[
12
],
zp
[
12
],
valp
[
12
][
9
];
...
...
@@ -488,7 +488,7 @@ PView *GMSH_LevelsetPlugin::execute(PView *v)
else
{
// create one view per timestep
for
(
int
step
=
0
;
step
<
vdata
->
getNumTimeSteps
();
step
++
){
//
if(!vdata->hasTimeStep(step)) continue;
if
(
!
vdata
->
hasTimeStep
(
step
))
continue
;
PViewDataList
*
out
=
getDataList
(
new
PView
());
for
(
int
ent
=
0
;
ent
<
vdata
->
getNumEntities
(
step
);
ent
++
){
for
(
int
ele
=
0
;
ele
<
vdata
->
getNumElements
(
step
,
ent
);
ele
++
){
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModel.cpp
+
4
−
2
View file @
5297095f
...
...
@@ -292,8 +292,10 @@ SBoundingBox3d PViewDataGModel::getBoundingBox(int step)
{
if
(
step
<
0
||
_steps
.
empty
()){
SBoundingBox3d
tmp
;
for
(
unsigned
int
i
=
0
;
i
<
_steps
.
size
();
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
_steps
.
size
();
i
++
){
if
(
!
_steps
[
i
]
->
getBoundingBox
().
empty
())
tmp
+=
_steps
[
i
]
->
getBoundingBox
();
}
return
tmp
;
}
return
_steps
[
step
]
->
getBoundingBox
();
...
...
This diff is collapsed.
Click to expand it.
Post/PViewDataGModelIO.cpp
+
1
−
3
View file @
5297095f
...
...
@@ -49,10 +49,8 @@ bool PViewDataGModel::addData(GModel *model, std::map<int, std::vector<double> >
void
PViewDataGModel
::
destroyData
()
{
for
(
unsigned
int
i
=
0
;
i
<
_steps
.
size
();
i
++
)
{
_steps
[
i
]
->
destroyData
();
}
}
bool
PViewDataGModel
::
readMSH
(
const
std
::
string
&
viewName
,
const
std
::
string
&
fileName
,
int
fileIndex
,
FILE
*
fp
,
bool
binary
,
bool
swap
,
...
...
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