[MOAB-dev] r2660 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Feb 26 14:55:48 CST 2009


Author: kraftche
Date: 2009-02-26 14:55:48 -0600 (Thu, 26 Feb 2009)
New Revision: 2660

Modified:
   MOAB/trunk/MBCN.hpp
Log:
return strictly 1 or 0 (rather than non-zero or zero) for aray form of MBCN::HasMidNodes

Modified: MOAB/trunk/MBCN.hpp
===================================================================
--- MOAB/trunk/MBCN.hpp	2009-02-26 20:16:05 UTC (rev 2659)
+++ MOAB/trunk/MBCN.hpp	2009-02-26 20:55:48 UTC (rev 2660)
@@ -514,9 +514,9 @@
 {
   const int bits = HasMidNodes( this_type, num_nodes );
   mid_nodes[0] = 0;
-  mid_nodes[1] = bits & MID_EDGE_BIT;
-  mid_nodes[2] = bits & MID_FACE_BIT;
-  mid_nodes[3] = bits & MID_REGION_BIT;
+  mid_nodes[1] = (bits & (1<<1)) >> 1;
+  mid_nodes[2] = (bits & (1<<2)) >> 2;
+  mid_nodes[3] = (bits & (1<<3)) >> 3;
 }
 
 //! Set permutation or reverse permutation vector



More information about the moab-dev mailing list