Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
2481aada
Commit
2481aada
authored
Aug 03, 2012
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed MPI problem with mesh structure codes on 32 bit systems.
parent
e1ac36f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
AMDiS/src/parallel/StdMpi.cc
AMDiS/src/parallel/StdMpi.cc
+10
-4
No files found.
AMDiS/src/parallel/StdMpi.cc
View file @
2481aada
...
...
@@ -20,7 +20,7 @@ namespace AMDiS {
MPI_Datatype
StdMpiHelper
<
vector
<
std
::
set
<
int
>
>
>::
mpiDataType
=
MPI_INT
;
MPI_Datatype
StdMpiHelper
<
vector
<
double
>
>::
mpiDataType
=
MPI_DOUBLE
;
MPI_Datatype
StdMpiHelper
<
vector
<
vector
<
double
>
>
>::
mpiDataType
=
MPI_DOUBLE
;
MPI_Datatype
StdMpiHelper
<
vector
<
MeshStructure
>
>::
mpiDataType
=
MPI_UNSIGNED_LONG
;
MPI_Datatype
StdMpiHelper
<
vector
<
MeshStructure
>
>::
mpiDataType
=
MPI_UNSIGNED_LONG
_LONG
;
MPI_Datatype
StdMpiHelper
<
vector
<
AtomicBoundary
>
>::
mpiDataType
=
MPI_INT
;
MPI_Datatype
StdMpiHelper
<
map
<
BoundaryType
,
map
<
DegreeOfFreedom
,
DegreeOfFreedom
>
>
>::
mpiDataType
=
MPI_INT
;
MPI_Datatype
StdMpiHelper
<
vector
<
std
::
pair
<
int
,
int
>
>
>::
mpiDataType
=
MPI_INT
;
...
...
@@ -123,7 +123,7 @@ namespace AMDiS {
void
StdMpiHelper
<
vector
<
std
::
set
<
int
>
>
>::
makeFromBuffer
(
vector
<
std
::
set
<
int
>
>
&
data
,
int
*
buf
,
int
bufSize
)
{
FUNCNAME
(
"StdMpiHelper<vector<set<int>
>
>::makeFromBuffer()"
);
FUNCNAME
(
"StdMpiHelper<vector<set<int>
>
>::makeFromBuffer()"
);
int
counter
=
1
;
data
.
resize
(
buf
[
0
]);
...
...
@@ -207,6 +207,8 @@ namespace AMDiS {
int
StdMpiHelper
<
vector
<
MeshStructure
>
>::
getBufferSize
(
vector
<
MeshStructure
>
&
data
)
{
FUNCNAME
(
"StdMpiHelper<vector<MeshStructure> >::getBufferSize()"
);
int
size
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
data
.
size
();
i
++
)
size
+=
data
[
i
].
getCode
().
size
()
+
2
;
...
...
@@ -216,6 +218,8 @@ namespace AMDiS {
void
StdMpiHelper
<
vector
<
MeshStructure
>
>::
createBuffer
(
vector
<
MeshStructure
>
&
data
,
uint64_t
*
buf
)
{
FUNCNAME
(
"StdMpiHelper<vector<MeshStructure> >::createBuffer()"
);
int
pos
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
data
.
size
();
i
++
)
{
buf
[
pos
++
]
=
data
[
i
].
getCode
().
size
();
...
...
@@ -227,11 +231,13 @@ namespace AMDiS {
}
void
StdMpiHelper
<
vector
<
MeshStructure
>
>::
makeFromBuffer
(
vector
<
MeshStructure
>
&
data
,
uint64_t
*
buf
,
int
bufSize
)
uint64_t
*
buf
,
int
bufSize
)
{
FUNCNAME
(
"StdMpiHelper<vector<MeshStructure> >::makeFromBuffer()"
);
int
pos
=
0
;
while
(
pos
<
bufSize
)
{
while
(
pos
<
bufSize
)
{
int
codeSize
=
buf
[
pos
++
];
int
nElements
=
buf
[
pos
++
];
vector
<
uint64_t
>
code
;
...
...
Write
Preview
Markdown
is supported
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