[MOAB-dev] r1967 - MOAB/trunk/parallel
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Mon Jun 30 13:48:50 CDT 2008
Author: kraftche
Date: 2008-06-30 13:48:50 -0500 (Mon, 30 Jun 2008)
New Revision: 1967
Modified:
MOAB/trunk/parallel/ReadParallel.cpp
Log:
fix error reporting in 1-CPU case
Modified: MOAB/trunk/parallel/ReadParallel.cpp
===================================================================
--- MOAB/trunk/parallel/ReadParallel.cpp 2008-06-30 17:54:42 UTC (rev 1966)
+++ MOAB/trunk/parallel/ReadParallel.cpp 2008-06-30 18:48:50 UTC (rev 1967)
@@ -383,14 +383,16 @@
return MB_FAILURE;
}
- if (MB_SUCCESS != tmp_result &&
- myPcomm->proc_config().proc_size() != 1) {
+ if (MB_SUCCESS != tmp_result) {
result = tmp_result;
- std::ostringstream ostr;
- ostr << "Failed in step " << ParallelActionsNames[*vit] << std::endl;
- std::string tmp_str;
- if (MB_SUCCESS == mbImpl->get_last_error(tmp_str)) ostr << tmp_str << std::endl;
- RR(ostr.str().c_str());
+ if (myPcomm->proc_config().proc_size() != 1) {
+ std::ostringstream ostr;
+ ostr << "Failed in step " << ParallelActionsNames[*vit] << std::endl;
+ std::string tmp_str;
+ if (MB_SUCCESS == mbImpl->get_last_error(tmp_str)) ostr << tmp_str << std::endl;
+ RR(ostr.str().c_str());
+ }
+ break;
}
if (cputime) act_times[i] = MPI_Wtime();
More information about the moab-dev
mailing list