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
94db295f
Commit
94db295f
authored
21 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
typos, comments
parent
4d2402e2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Plugin/Levelset.cpp
+7
-8
7 additions, 8 deletions
Plugin/Levelset.cpp
with
7 additions
and
8 deletions
Plugin/Levelset.cpp
+
7
−
8
View file @
94db295f
// $Id: Levelset.cpp,v 1.
3
2003-11-22 0
2
:1
9
:3
5
geuzaine Exp $
// $Id: Levelset.cpp,v 1.
4
2003-11-22 0
5
:1
2
:3
6
geuzaine Exp $
//
//
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -105,11 +105,11 @@ int GMSH_LevelsetPlugin::zeroLevelset(int timeStep,
...
@@ -105,11 +105,11 @@ int GMSH_LevelsetPlugin::zeroLevelset(int timeStep,
double
xpi
[
12
],
ypi
[
12
],
zpi
[
12
],
valpi
[
12
][
9
];
double
xpi
[
12
],
ypi
[
12
],
zpi
[
12
],
valpi
[
12
][
9
];
// Remove identical nodes (can happen
only
if an edge actually
// Remove identical nodes (
this
can happen if an edge actually
// belongs to the zero levelset, i.e., if levels[] * levels[] ==
// belongs to the zero levelset, i.e., if levels[] * levels[] ==
// 0).
Actuallym, w
e should be doing this even for np < 4, but it
// 0).
W
e should be doing this even for np < 4, but it
would slow us
//
takes some tim
e... And we don't really care if some nodes in
//
down even mor
e...
(
And we don't really care if some nodes in
a
//
a
postprocessing element are identical.
// postprocessing element are identical.
)
if
(
np
>
4
){
if
(
np
>
4
){
int
npi
;
int
npi
;
affect
(
xpi
,
ypi
,
zpi
,
valpi
,
0
,
xp
,
yp
,
zp
,
valp
,
0
,
dNbComp
);
affect
(
xpi
,
ypi
,
zpi
,
valpi
,
0
,
xp
,
yp
,
zp
,
valp
,
0
,
dNbComp
);
...
@@ -249,7 +249,6 @@ void GMSH_LevelsetPlugin::executeList(Post_View * iView, List_T * iList,
...
@@ -249,7 +249,6 @@ void GMSH_LevelsetPlugin::executeList(Post_View * iView, List_T * iList,
return
;
return
;
}
}
// for all elements
int
iNb
=
List_Nbr
(
iList
)
/
iNbElm
;
int
iNb
=
List_Nbr
(
iList
)
/
iNbElm
;
int
dNb
=
List_Nbr
(
dList
)
/
dNbElm
;
int
dNb
=
List_Nbr
(
dList
)
/
dNbElm
;
for
(
int
i
=
0
,
j
=
0
;
i
<
List_Nbr
(
iList
);
i
+=
iNb
,
j
+=
dNb
)
{
for
(
int
i
=
0
,
j
=
0
;
i
<
List_Nbr
(
iList
);
i
+=
iNb
,
j
+=
dNb
)
{
...
@@ -285,8 +284,8 @@ void GMSH_LevelsetPlugin::executeList(Post_View * iView, List_T * iList,
...
@@ -285,8 +284,8 @@ void GMSH_LevelsetPlugin::executeList(Post_View * iView, List_T * iList,
if
(
_valueIndependent
)
{
if
(
_valueIndependent
)
{
// since the intersection is value-independent, we can loop on
// since the intersection is value-independent, we can loop on
// the time steps so that only one element gets created per
// the time steps so that only one element gets created per
// time step. This allows us to still generate a
*single*
// time step. This allows us to still
easily
generate a
// multi-timestep view.
//
*single*
multi-timestep view.
if
(
zeroLevelset
(
0
,
nbVert
,
nbEdg
,
exn
,
x
,
y
,
z
,
NULL
,
0
,
if
(
zeroLevelset
(
0
,
nbVert
,
nbEdg
,
exn
,
x
,
y
,
z
,
NULL
,
0
,
NULL
,
0
,
out
))
{
NULL
,
0
,
out
))
{
for
(
int
k
=
0
;
k
<
iDec
.
numSimplices
();
k
++
)
{
for
(
int
k
=
0
;
k
<
iDec
.
numSimplices
();
k
++
)
{
...
...
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