[MOAB-dev] r3914 - MOAB/trunk/src/parallel
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue May 18 10:48:17 CDT 2010
Author: kraftche
Date: 2010-05-18 10:48:17 -0500 (Tue, 18 May 2010)
New Revision: 3914
Modified:
MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
Log:
fix bug in parallel write
Modified: MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
===================================================================
--- MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp 2010-05-17 20:57:48 UTC (rev 3913)
+++ MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp 2010-05-18 15:48:17 UTC (rev 3914)
@@ -618,7 +618,7 @@
// displs contains offsets into buffer at which data for each
// proc starts, and the total length at the end. If we've passed
// the data for the process ID in 'rank' then increment rank.
- while (diter - all_buffer.begin() > (unsigned)displs[rank+1])
+ while (diter - all_buffer.begin() >= (unsigned)displs[rank+1])
++rank;
// Get struct from buffer
@@ -654,10 +654,6 @@
newtag.varDataOffset = 0;
newtag.write = false;
newtag.max_num_ents = 0;
-if (tag_iter == tagList.end())
- std::cout << myPcomm->proc_config().proc_rank() << ": Inserting tag \"" << name.c_str() << "\" at end of tag list" << std::endl;
-else
- std::cout << myPcomm->proc_config().proc_rank() << ": Inserting tag \"" << name.c_str() << "\" before \"" << n << "\"" << std::endl;
tag_iter = tagList.insert( tag_iter, newtag );
++num_tags;
More information about the moab-dev
mailing list