[MOAB-dev] r3474 - MOAB/trunk/tools/mbcoupler

smithrm at mcs.anl.gov smithrm at mcs.anl.gov
Fri Jan 22 16:08:04 CST 2010


Author: smithrm
Date: 2010-01-22 16:08:04 -0600 (Fri, 22 Jan 2010)
New Revision: 3474

Modified:
   MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
Log:
o Fixed bug in PRINT_LAST_ERROR macro so it will now print the error message and not the return value of the call to get the message.


Modified: MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-01-22 22:02:39 UTC (rev 3473)
+++ MOAB/trunk/tools/mbcoupler/mbcoupler_test.cpp	2010-01-22 22:08:04 UTC (rev 3474)
@@ -21,7 +21,8 @@
     if (MB_SUCCESS != result) {\
       std::string tmp_str;\
       std::cout << "Failure; message:" << std::endl;\
-      std::cout << mbImpl->get_last_error(tmp_str) << std::endl;\
+      mbImpl->get_last_error(tmp_str);\
+      std::cout << tmp_str << std::endl;\
       MPI_Finalize();                                     \
       return result;\
     }



More information about the moab-dev mailing list