[MOAB-dev] r1821 - in MOAB/trunk: parallel tools/mcnpmit
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Fri May 16 16:01:29 CDT 2008
Author: tautges
Date: 2008-05-16 16:01:29 -0500 (Fri, 16 May 2008)
New Revision: 1821
Modified:
MOAB/trunk/parallel/MBParallelComm.cpp
MOAB/trunk/tools/mcnpmit/main.cpp
MOAB/trunk/tools/mcnpmit/mcnpmit.cpp
Log:
Fixed another few gcc4.3-related include problems.
MBParallelComm.cpp: fixing sign problem on a message; also fixing proc #
for ghost exchange function. 2-proc parallel init and ghosting now works.
Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp 2008-05-16 16:51:38 UTC (rev 1820)
+++ MOAB/trunk/parallel/MBParallelComm.cpp 2008-05-16 21:01:29 UTC (rev 1821)
@@ -378,7 +378,7 @@
MPI_Request &recv_req)
{
// use the received size to resize buffer, then post another irecv
- recv_buff.resize(*((int*)&recv_buff[0]));
+ recv_buff.resize(-(*((int*)&recv_buff[0])));
int success = MPI_Irecv(&recv_buff[0], recv_buff.size(), MPI_UNSIGNED_CHAR, from_proc,
MB_MESG_ENTS, procConfig.proc_comm(), &recv_req);
if (MPI_SUCCESS != success) {
@@ -2901,7 +2901,7 @@
assert(ind < MAX_SHARING_PROCS);
new_size = *((int*)&ghostRBuffs[ind][0]);
assert(0 > new_size);
- result = recv_size_buff(*vit, ghostRBuffs[ind], recv_reqs[ind]);
+ result = recv_size_buff(buffProcs[ind], ghostRBuffs[ind], recv_reqs[ind]);
RRA("Failed to resize recv buffer.");
num_incoming++;
break;
Modified: MOAB/trunk/tools/mcnpmit/main.cpp
===================================================================
--- MOAB/trunk/tools/mcnpmit/main.cpp 2008-05-16 16:51:38 UTC (rev 1820)
+++ MOAB/trunk/tools/mcnpmit/main.cpp 2008-05-16 21:01:29 UTC (rev 1821)
@@ -2,6 +2,7 @@
#include <fstream>
#include <math.h>
#include <time.h>
+#include <cstdlib>
#include "assert.h"
#include "mcnpmit.hpp"
Modified: MOAB/trunk/tools/mcnpmit/mcnpmit.cpp
===================================================================
--- MOAB/trunk/tools/mcnpmit/mcnpmit.cpp 2008-05-16 16:51:38 UTC (rev 1820)
+++ MOAB/trunk/tools/mcnpmit/mcnpmit.cpp 2008-05-16 21:01:29 UTC (rev 1821)
@@ -1,5 +1,6 @@
#include <iostream>
#include <fstream>
+#include <cstdlib>
#include "mcnpmit.hpp"
#include "MBCartVect.hpp"
#include "math.h"
More information about the moab-dev
mailing list