Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
a74b2cdb
Commit
a74b2cdb
authored
Mar 11, 2010
by
Thomas Witkowski
Browse files
Small bugfix in findElInfoAtPoint, thanks to Francisco.
parent
bc349314
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Mesh.cc
View file @
a74b2cdb
...
...
@@ -674,10 +674,22 @@ namespace AMDiS {
mel_info
->
fillMacroInfo
(
mel
);
// We have the care about not to visite a macro element twice. In this case the
// function would end up in an infinite loop. If a macro element is visited a
// second time, what can happen with periodic boundary conditions, the point is
// not within the mesh!
std
::
set
<
int
>
macrosVisited
;
macrosVisited
.
insert
(
mel
->
getIndex
());
int
k
;
while
((
k
=
mel_info
->
worldToCoord
(
xy
,
&
lambda
))
>=
0
)
{
if
(
mel
->
getNeighbour
(
k
))
{
mel
=
mel
->
getNeighbour
(
k
);
mel
=
mel
->
getNeighbour
(
k
);
if
(
macrosVisited
.
count
(
mel
->
getIndex
()))
return
false
;
macrosVisited
.
insert
(
mel
->
getIndex
());
mel_info
->
fillMacroInfo
(
mel
);
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment