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

luis at geodynamics.org luis at geodynamics.org
Wed Feb 13 06:09:18 PST 2008


Author: luis
Date: 2008-02-13 06:09:18 -0800 (Wed, 13 Feb 2008)
New Revision: 9299

Modified:
   cs/benchmark/cigma/trunk/src/CompareCmd.cpp
Log:
Added special --debug flag to CompareCmd


Modified: cs/benchmark/cigma/trunk/src/CompareCmd.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/CompareCmd.cpp	2008-02-13 09:51:21 UTC (rev 9298)
+++ cs/benchmark/cigma/trunk/src/CompareCmd.cpp	2008-02-13 14:09:18 UTC (rev 9299)
@@ -63,6 +63,7 @@
 
     /* setup flags and options */
     opt->setFlag("help", 'h');
+    opt->setFlag("debug"); // XXX: uses specific defaults
 
     // options for mesh
     opt->setOption("mesh");
@@ -124,6 +125,7 @@
      *  Load Quadrature rule
      */
 
+
     /* Gather up the expected command line arguments */
 
     //XXX: add "rule" to last arg
@@ -135,10 +137,10 @@
     configure_field(opt, &secondIO, "second");
     configure_field(opt, &residualsIO, "output");
 
+
     /* Validate these arguments and complain about missing ones */
 
-    const bool debug = true;
-    if (debug)
+    if (opt->getFlag("debug"))
     {
         // assign defaults if we're in debug mode
         if (firstIO.field_path == "")
@@ -148,6 +150,7 @@
         if (residualsIO.field_path == "")
             residualsIO.field_path = "foo.vtk";
     }
+
     if (firstIO.field_path == "")
     {
         cerr << "compare: Please specify the option --first" << endl;



More information about the cig-commits mailing list