|
From: <and...@us...> - 2011-09-14 14:23:29
|
Revision: 11924
http://plplot.svn.sourceforge.net/plplot/?rev=11924&view=rev
Author: andrewross
Date: 2011-09-14 14:23:22 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
Need to zero z array if the dbg option is set.
Modified Paths:
--------------
trunk/examples/d/x20d.d
Modified: trunk/examples/d/x20d.d
===================================================================
--- trunk/examples/d/x20d.d 2011-09-14 08:48:17 UTC (rev 11923)
+++ trunk/examples/d/x20d.d 2011-09-14 14:23:22 UTC (rev 11924)
@@ -66,6 +66,11 @@
{
plenv( 1.0, XDIM, 1.0, YDIM, 1, 1 ); // no plot box
+ // Zero z array before use
+ for ( int j = 0; j < YDIM; j++ )
+ for ( int i = 0; i < XDIM; i++ )
+ z[i][j] = 0.0;
+
// build a one pixel square border, for diagnostics
for ( int i = 0; i < XDIM; i++ )
z[i][YDIM - 1] = 1.0; // right
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|