[MOAB-dev] r3194 - MOAB/trunk/parallel
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Thu Oct 8 15:58:23 CDT 2009
Author: tautges
Date: 2009-10-08 15:58:23 -0500 (Thu, 08 Oct 2009)
New Revision: 3194
Modified:
MOAB/trunk/parallel/MBParallelComm.cpp
Log:
Correcting code which produced lots of warnings about string literals.
Modified: MOAB/trunk/parallel/MBParallelComm.cpp
===================================================================
--- MOAB/trunk/parallel/MBParallelComm.cpp 2009-10-08 19:40:38 UTC (rev 3193)
+++ MOAB/trunk/parallel/MBParallelComm.cpp 2009-10-08 20:58:23 UTC (rev 3194)
@@ -131,13 +131,13 @@
#define RRA(a) if (MB_SUCCESS != result) {\
std::string tmp_str; mbImpl->get_last_error(tmp_str);\
tmp_str.append("\n"); tmp_str.append(a);\
- dynamic_cast<MBCore*>(mbImpl)->get_error_handler()->set_last_error(tmp_str.c_str()); \
+ dynamic_cast<MBCore*>(mbImpl)->get_error_handler()->set_last_error(tmp_str); \
return result;}
#define RRAI(i, a) if (MB_SUCCESS != result) { \
std::string tmp_str; i->get_last_error(tmp_str);\
tmp_str.append("\n"); tmp_str.append(a);\
- dynamic_cast<MBCore*>(i)->get_error_handler()->set_last_error(tmp_str.c_str()); \
+ dynamic_cast<MBCore*>(i)->get_error_handler()->set_last_error(tmp_str); \
return result;}
/** Name of tag used to store MBParallelComm Index on mesh paritioning sets */
@@ -4448,7 +4448,7 @@
}
// ok, now wait
- MPI_Status status[MAX_SHARING_PROCS];
+// MPI_Status status[MAX_SHARING_PROCS];
success = MPI_Barrier(procConfig.proc_comm());
// success = MPI_Waitall(2*buffProcs.size(), &sendReqs[0], status);
if (MPI_SUCCESS != success) {
More information about the moab-dev
mailing list