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
Backofen, Rainer
amdis
Commits
6f780a3f
Commit
6f780a3f
authored
Jun 29, 2010
by
Thomas Witkowski
Browse files
Small bugfix for serialization in context with periodic bc in parallel computation.
parent
f96caf23
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/GlobalMatrixSolver.cc
View file @
6f780a3f
...
...
@@ -277,15 +277,10 @@ namespace AMDiS {
int
localPetscRowIdx
=
petscRowIdx
-
meshDistributor
->
getRstart
()
*
nComponents
;
#if (DEBUG != 0)
if
(
localPetscRowIdx
<
0
||
localPetscRowIdx
>=
nRankRows
)
{
std
::
cout
<<
"ERROR in rank: "
<<
meshDistributor
->
getMpiRank
()
<<
std
::
endl
;
std
::
cout
<<
" Wrong r = "
<<
localPetscRowIdx
<<
" "
<<
*
cursor
<<
" "
<<
meshDistributor
->
mapLocalToGlobal
(
*
cursor
)
<<
" "
<<
nRankRows
<<
std
::
endl
;
ERROR_EXIT
(
"Should not happen!
\n
"
);
}
#endif
TEST_EXIT_DBG
(
localPetscRowIdx
>=
0
&&
localPetscRowIdx
<
nRankRows
)
(
"Should not happen! Wrong r = %d %d %d %d %d
\n
"
,
localPetscRowIdx
,
meshDistributor
->
getRstart
(),
*
cursor
,
meshDistributor
->
mapLocalToGlobal
(
*
cursor
),
nRankRows
);
// Traverse all non zero entries in this row.
for
(
icursor_type
icursor
=
begin
<
nz
>
(
cursor
),
...
...
AMDiS/src/parallel/ParallelDomainBase.cc
View file @
6f780a3f
...
...
@@ -2146,6 +2146,7 @@ namespace AMDiS {
SerUtil
::
deserialize
(
in
,
isRankDof
);
deserialize
(
in
,
vertexDof
,
dofMap
);
deserialize
(
in
,
periodicDof
);
SerUtil
::
deserialize
(
in
,
rstart
);
SerUtil
::
deserialize
(
in
,
macroElementStructureConsisten
);
...
...
@@ -2174,6 +2175,7 @@ namespace AMDiS {
int
mapSize
=
0
;
SerUtil
::
deserialize
(
in
,
mapSize
);
for
(
int
i
=
0
;
i
<
mapSize
;
i
++
)
{
DegreeOfFreedom
dof
=
0
;
std
::
set
<
DegreeOfFreedom
>
dofSet
;
...
...
AMDiS/src/parallel/ParallelDomainBase.h
View file @
6f780a3f
...
...
@@ -343,6 +343,8 @@ namespace AMDiS {
template
<
typename
T
>
void
serialize
(
std
::
ostream
&
out
,
std
::
map
<
const
DegreeOfFreedom
*
,
T
>
&
data
)
{
FUNCNAME
(
"ParallelDomainBase::serialize()"
);
int
mapSize
=
data
.
size
();
SerUtil
::
serialize
(
out
,
mapSize
);
for
(
typename
std
::
map
<
const
DegreeOfFreedom
*
,
T
>::
iterator
it
=
data
.
begin
();
...
...
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