[MOAB-dev] r4710 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Fri Apr 1 12:07:01 CDT 2011
Author: kraftche
Date: 2011-04-01 12:07:01 -0500 (Fri, 01 Apr 2011)
New Revision: 4710
Modified:
MOAB/trunk/src/io/WriteNCDF.cpp
Log:
fix array index out of bounds (reported in compiler warning)
Modified: MOAB/trunk/src/io/WriteNCDF.cpp
===================================================================
--- MOAB/trunk/src/io/WriteNCDF.cpp 2011-04-01 15:26:21 UTC (rev 4709)
+++ MOAB/trunk/src/io/WriteNCDF.cpp 2011-04-01 17:07:01 UTC (rev 4710)
@@ -1909,7 +1909,7 @@
/* node coordinate arrays: */
- int coord, name_coord, dims[2];
+ int coord, name_coord, dims[3];
dims[0] = num_dim;
dims[1] = num_nodes;
if (NC_NOERR != nc_def_var(ncFile, "coord", NC_DOUBLE, 2, dims, &coord))
More information about the moab-dev
mailing list