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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Sat Nov 10 13:09:50 CST 2012


Author: tautges
Date: 2012-11-10 13:09:50 -0600 (Sat, 10 Nov 2012)
New Revision: 5862

Modified:
   MOAB/trunk/tools/mbcoupler/Coupler.cpp
Log:
Fixed the error with mapping fields in parallel.


Modified: MOAB/trunk/tools/mbcoupler/Coupler.cpp
===================================================================
--- MOAB/trunk/tools/mbcoupler/Coupler.cpp	2012-11-09 21:24:37 UTC (rev 5861)
+++ MOAB/trunk/tools/mbcoupler/Coupler.cpp	2012-11-10 19:09:50 UTC (rev 5862)
@@ -584,7 +584,8 @@
   }
 
     // copy the interpolated field as a unit
-  memcpy(interp_vals, tinterp.vr_rd, tinterp.get_n()*sizeof(double));
+  for (int i = 0; i < tinterp.get_n(); i++)
+    interp_vals[tinterp.vi_rd[5*i+1]] = tinterp.vr_rd[i];
   
     // done
   return MB_SUCCESS;



More information about the moab-dev mailing list