[cig-commits] r11713 - cs/benchmark/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Wed Apr 2 03:24:44 PDT 2008


Author: luis
Date: 2008-04-02 03:24:44 -0700 (Wed, 02 Apr 2008)
New Revision: 11713

Modified:
   cs/benchmark/cigma/trunk/src/ExtractCmd.cpp
Log:
Removed debug output from ExtractCmd::run()


Modified: cs/benchmark/cigma/trunk/src/ExtractCmd.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/ExtractCmd.cpp	2008-04-02 10:24:41 UTC (rev 11712)
+++ cs/benchmark/cigma/trunk/src/ExtractCmd.cpp	2008-04-02 10:24:44 UTC (rev 11713)
@@ -183,23 +183,11 @@
         cout << "Extracting " << (nel * nq) << " points from input mesh..." << endl;
     }
 
+
     for (e = 0; e < nel; e++)
     {
         meshPart->select_cell(e);
-        /*
-        cout << "e = " << e << endl;
-        for (int a = 0; a < cell->n_nodes(); a++)
-        {
-            cout << "\t";
-            for (int b = 0; b < 3; b++)
-            {
-                cout << cell->globverts[3*a+b] << " ";
-            }
-            cout << endl;
-        } // */
-
         qpts->apply_refmap(cell);
-
         for (q = 0; q < nq; q++)
         {
             for (i = 0; i < nsd; i++)
@@ -210,25 +198,26 @@
         }
     }
 
-    int ierr;
 
+    int status;
+
     cout << "Creating file " << outputFilename << endl;
 
-    ierr = pointsWriter->open(outputFilename.c_str());
-    if (ierr < 0)
+    status = pointsWriter->open(outputFilename.c_str());
+    if (status < 0)
     {
         cerr << "extract: Could not open (or create) the output file " << outputFilename << endl;
         exit(1);
     }
 
-    ierr = pointsWriter->write_coordinates(pointsPath.c_str(), points, nq*nel, nsd);
-    if (ierr < 0)
+    status = pointsWriter->write_coordinates(pointsPath.c_str(), points, nq*nel, nsd);
+    if (status < 0)
     {
         cerr << "extract: Could not write points dataset " << pointsPath << endl;
         exit(1);
     }
     
-    ierr = pointsWriter->close();
+    status = pointsWriter->close();
 
     delete [] points;    // XXX: use auto_ptr?
 



More information about the cig-commits mailing list