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
21017269
Commit
21017269
authored
Mar 22, 2012
by
Thomas Witkowski
Browse files
And a fix of the fix, thanks Thomas for bug reporting.
parent
747241d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/MeshDistributor.cc
View file @
21017269
...
...
@@ -2215,7 +2215,7 @@ namespace AMDiS {
// DOFs. I'm note sure what is correct here.
for
(
map
<
int
,
PeriodicDofMap
>::
iterator
it
=
stdMpi2
.
getRecvData
().
begin
();
it
!=
stdMpi2
.
getRecvData
().
end
();
++
it
)
periodicMap
.
add
(
feSpace
,
it
->
second
,
false
);
periodicMap
.
add
(
feSpace
,
it
->
second
);
}
...
...
AMDiS/src/parallel/PeriodicMap.cc
View file @
21017269
...
...
@@ -16,15 +16,14 @@
namespace
AMDiS
{
void
PeriodicMap
::
add
(
const
FiniteElemSpace
*
feSpace
,
PeriodicDofMap
&
newMap
,
bool
a
)
PeriodicDofMap
&
newMap
)
{
FUNCNAME
(
"PeriodicMap::add()"
);
for
(
PeriodicDofMap
::
iterator
it
=
newMap
.
begin
();
it
!=
newMap
.
end
();
++
it
)
for
(
DofMap
::
iterator
dofIt
=
it
->
second
.
begin
();
dofIt
!=
it
->
second
.
end
();
++
dofIt
)
add
(
feSpace
,
it
->
first
,
dofIt
->
second
,
dofIt
->
first
,
a
);
add
(
feSpace
,
it
->
first
,
dofIt
->
second
,
dofIt
->
first
);
}
...
...
AMDiS/src/parallel/PeriodicMap.h
View file @
21017269
...
...
@@ -101,8 +101,7 @@ namespace AMDiS {
/// this DOFs that maps to a different DOF index than the given one.
inline
void
add
(
const
FiniteElemSpace
*
feSpace
,
BoundaryType
type
,
DegreeOfFreedom
dof0
,
DegreeOfFreedom
dof1
,
bool
a
=
true
)
DegreeOfFreedom
dof0
,
DegreeOfFreedom
dof1
)
{
FUNCNAME
(
"PeriodicMap::map()"
);
...
...
@@ -111,13 +110,12 @@ namespace AMDiS {
(
"Should not happen!
\n
"
);
periodicDofMap
[
feSpace
][
type
][
dof0
]
=
dof1
;
if
(
a
)
periodicDofAssociations
[
feSpace
][
dof0
].
insert
(
type
);
periodicDofAssociations
[
feSpace
][
dof0
].
insert
(
type
);
}
/// Adds a whole periodic mapping to the current one.
void
add
(
const
FiniteElemSpace
*
feSpace
,
PeriodicDofMap
&
newMap
,
bool
a
=
true
);
void
add
(
const
FiniteElemSpace
*
feSpace
,
PeriodicDofMap
&
newMap
);
/// For a given global DOF index, this function returns the set of periodic
...
...
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