[cig-commits] r9068 - cs/benchmark/cigma/trunk/src/tests

luis at geodynamics.org luis at geodynamics.org
Wed Jan 16 11:32:17 PST 2008


Author: luis
Date: 2008-01-16 11:32:17 -0800 (Wed, 16 Jan 2008)
New Revision: 9068

Modified:
   cs/benchmark/cigma/trunk/src/tests/TestHex.cpp
Log:
Commented out unused I/O variables in TestHex, and changed phi_k to phi

Modified: cs/benchmark/cigma/trunk/src/tests/TestHex.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/tests/TestHex.cpp	2008-01-16 19:32:15 UTC (rev 9067)
+++ cs/benchmark/cigma/trunk/src/tests/TestHex.cpp	2008-01-16 19:32:17 UTC (rev 9068)
@@ -2,18 +2,18 @@
 #include <cstdlib>
 #include <cassert>
 
-#include "../TextWriter.h"
-#include "../VtkUgReader.h"
+//#include "../TextWriter.h"
+//#include "../VtkUgReader.h"
 #include "../Hex.h"
 
 using namespace cigma;
 
 int main(void)
 {
-    TextWriter *writer = new TextWriter();
-    writer->fp = stdout;
+    //TextWriter writer;
+    //writer.fp = stdout;
 
-    VtkUgReader *reader = new VtkUgReader();
+    //VtkUgReader *reader = new VtkUgReader();
     //reader->open("strikeslip_tet4_0500m_t0.vtk");
     
     // -----------------------------------------------------------------------
@@ -61,7 +61,7 @@
 
 
         double *phi = &tab[ndofs*i];
-        std::cout << "phi_k = ("
+        std::cout << "phi = ("
                   << phi[0] << " "
                   << phi[1] << " "
                   << phi[2] << " "
@@ -120,10 +120,10 @@
 
     // -----------------------------------------------------------------------
     
-    delete reader;
+    //delete reader;
     
-    writer->fp = NULL;
-    delete writer;
+    //writer->fp = NULL;
+    //delete writer;
 
     return 0;
 }



More information about the cig-commits mailing list