Skip to content
GitLab
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
81ef8e5c
Commit
81ef8e5c
authored
Dec 09, 2009
by
Thomas Witkowski
Browse files
First semiworking adaptivity for parallelization.
parent
ecdce6c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/ParallelDomainBase.cc
View file @
81ef8e5c
...
...
@@ -793,24 +793,35 @@ namespace AMDiS {
stdMpi
.
startCommunication
<
unsigned
long
int
>
();
#if 0
// === Compare received mesh structure codes. ===
bool
meshFitTogether
=
true
;
for
(
RankToBoundMap
::
iterator
it
=
otherIntBoundary
.
boundary
.
begin
();
it
!=
otherIntBoundary
.
boundary
.
end
();
++
it
)
{
MeshCodeVec
&
recvCodes
=
stdMpi
.
getRecvData
()[
it
->
first
];
int
i
=
0
;
for
(
std
::
vector
<
AtomicBoundary
>::
iterator
boundIt
=
it
->
second
.
begin
();
boundIt
!=
it
->
second
.
end
();
++
boundIt
)
{
MeshStructure
elCode
;
elCode.init(boundIt->rankObj.el,
boundIt->rankObj.ithObj,
elCode
.
init
(
boundIt
->
rankObj
.
el
,
boundIt
->
rankObj
.
ithObj
,
boundIt
->
rankObj
.
elType
);
if
(
elCode
.
getCode
()
!=
recvCodes
[
i
].
getCode
())
meshFitTogether
=
false
;
i
++
;
}
}
#endif
std
::
cout
<<
"MESH HAS BEEN CHANGED!"
<<
std
::
endl
;
exit
(
0
);
if
(
!
meshFitTogether
)
{
std
::
cout
<<
"MESH HAS BEEN CHANGED!"
<<
std
::
endl
;
exit
(
0
);
}
lastMeshChangeIndex
=
mesh
->
getChangeIndex
();
}
...
...
AMDiS/src/StdMpi.h
View file @
81ef8e5c
...
...
@@ -82,12 +82,12 @@ namespace AMDiS {
void
makeFromBuf
(
std
::
vector
<
MeshStructure
>
&
data
,
unsigned
long
int
*
buf
,
int
bufSize
)
{
int
pos
=
0
;
while
(
pos
<
bufSize
)
{
int
codeSize
=
buf
[
pos
++
];
int
nElements
=
buf
[
pos
++
];
std
::
vector
<
unsigned
long
int
>
code
;
code
.
res
erv
e
(
codeSize
);
code
.
res
iz
e
(
codeSize
);
for
(
int
i
=
0
;
i
<
codeSize
;
i
++
)
code
[
i
]
=
buf
[
pos
++
];
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment