[MOAB-dev] r4250 - MOAB/trunk/tools/dagmc
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Wed Nov 3 20:19:00 CDT 2010
Author: tautges
Date: 2010-11-03 20:19:00 -0500 (Wed, 03 Nov 2010)
New Revision: 4250
Modified:
MOAB/trunk/tools/dagmc/quads_to_tris.cpp
Log:
Replacing non-standard line:
CartVect coords[nverts]
with
std::vector<CartVect> coords(nverts)
This mistake is fairly common, and gcc allows it when it really shouldn't.
Modified: MOAB/trunk/tools/dagmc/quads_to_tris.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/quads_to_tris.cpp 2010-11-04 01:02:37 UTC (rev 4249)
+++ MOAB/trunk/tools/dagmc/quads_to_tris.cpp 2010-11-04 01:19:00 UTC (rev 4250)
@@ -32,7 +32,7 @@
assert( MB_SUCCESS == result);
// find length of diagonals
- CartVect coords[n_verts];
+ std::vector<CartVect> coords(n_verts);
result = MBI->get_coords( quad_conn, n_verts, coords[0].array() );
if(MB_SUCCESS != result) return result;
CartVect diagA = coords[0] - coords[2];
More information about the moab-dev
mailing list