[MOAB-dev] r5853 - MOAB/trunk/src/io

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Nov 5 17:36:37 CST 2012


Author: iulian
Date: 2012-11-05 17:36:37 -0600 (Mon, 05 Nov 2012)
New Revision: 5853

Modified:
   MOAB/trunk/src/io/ReadNC.cpp
Log:
the number of spectral vertices depends on number of verts per element


Modified: MOAB/trunk/src/io/ReadNC.cpp
===================================================================
--- MOAB/trunk/src/io/ReadNC.cpp	2012-11-05 18:58:41 UTC (rev 5852)
+++ MOAB/trunk/src/io/ReadNC.cpp	2012-11-05 23:36:37 UTC (rev 5853)
@@ -810,7 +810,8 @@
     assert(conn_arr[q]);
   }
   if (spectral_mesh) {
-    for (int q = 0; q < 4 * num_coarse_quads; q++) {
+	int verts_per_quad=(spectralOrder+1)*(spectralOrder+1);
+    for (int q = 0; q < verts_per_quad * num_coarse_quads; q++) {
       sv_ptr[q] = vert_handles[sv_ptr[q]];
       assert(sv_ptr[q]);
     }



More information about the moab-dev mailing list