[MOAB-dev] r3849 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Wed May 5 15:06:24 CDT 2010
Author: kraftche
Date: 2010-05-05 15:06:24 -0500 (Wed, 05 May 2010)
New Revision: 3849
Modified:
MOAB/trunk/src/io/IODebugTrack.cpp
Log:
fix build errors
Modified: MOAB/trunk/src/io/IODebugTrack.cpp
===================================================================
--- MOAB/trunk/src/io/IODebugTrack.cpp 2010-05-05 19:48:19 UTC (rev 3848)
+++ MOAB/trunk/src/io/IODebugTrack.cpp 2010-05-05 20:06:24 UTC (rev 3849)
@@ -1,5 +1,6 @@
#include "IODebugTrack.hpp"
#include <iostream>
+#include <vector>
#include <assert.h>
#ifdef USE_MPI
@@ -120,7 +121,7 @@
std::vector<int> displs(commsize);
MPI_Gather( &count, 1, MPI_INT,
&displs[0], 1, MPI_INT,
- MPI_COMM_WORLD );
+ 0, MPI_COMM_WORLD );
int total = 0;
for (int i = 0; i < commsize; ++i) {
int tmp = displs[i];
@@ -132,7 +133,7 @@
std::vector<DRange> send(dataSet.size()), recv(total);
std::copy( dataSet.begin(), dataSet.end(), send.begin() );
MPI_Gatherv( &send[0], 3*send.size(), MPI_UNSIGNED_LONG,
- &recv[0], &counts[0], &dspls[0], MPI_UNSIGNED_LONG,
+ &recv[0], &counts[0], &displs[0], MPI_UNSIGNED_LONG,
0, MPI_COMM_WORLD );
if (0 == mpiRank) {
More information about the moab-dev
mailing list