[MOAB-dev] r3956 - MOAB/trunk/src
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Tue May 25 14:22:52 CDT 2010
Author: kraftche
Date: 2010-05-25 14:22:52 -0500 (Tue, 25 May 2010)
New Revision: 3956
Modified:
MOAB/trunk/src/WriteUtil.cpp
Log:
fix bug in WriteUtilIface::get_node_coords w/ which_array == -1
Modified: MOAB/trunk/src/WriteUtil.cpp
===================================================================
--- MOAB/trunk/src/WriteUtil.cpp 2010-05-25 18:16:15 UTC (rev 3955)
+++ MOAB/trunk/src/WriteUtil.cpp 2010-05-25 19:22:52 UTC (rev 3956)
@@ -187,9 +187,9 @@
if (output_iter + 3*count > output_end)
return MB_FAILURE;
for (unsigned int i = 0; i < count; i++) {
- *output_iter = coord_array[0][i]; output_iter++;
- *output_iter = coord_array[1][i]; output_iter++;
- *output_iter = coord_array[2][i]; output_iter++;
+ *output_iter = coord_array[0][i+offset]; output_iter++;
+ *output_iter = coord_array[1][i+offset]; output_iter++;
+ *output_iter = coord_array[2][i+offset]; output_iter++;
}
}
More information about the moab-dev
mailing list