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

luis at geodynamics.org luis at geodynamics.org
Tue Jan 22 19:22:48 PST 2008


Author: luis
Date: 2008-01-22 19:22:47 -0800 (Tue, 22 Jan 2008)
New Revision: 9115

Modified:
   cs/benchmark/cigma/trunk/src/CompareCmd.cpp
Log:
Fixes to compare command
 * Option --fieldA renamed to --first
 * Option --fieldB renamed to --second

Modified: cs/benchmark/cigma/trunk/src/CompareCmd.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/CompareCmd.cpp	2008-01-22 21:00:34 UTC (rev 9114)
+++ cs/benchmark/cigma/trunk/src/CompareCmd.cpp	2008-01-23 03:22:47 UTC (rev 9115)
@@ -41,8 +41,8 @@
     /* setup usage */
     opt->addUsage("Usage:");
     opt->addUsage("   cigma compare [options]");
-    opt->addUsage("     -a  --fieldA     First field location");
-    opt->addUsage("     -b  --fieldB     Second field location");
+    opt->addUsage("     -a  --first      First field location");
+    opt->addUsage("     -b  --second     Second field location");
     opt->addUsage("         --order      Quadrature order");
     opt->addUsage("         --output     Output file");
 
@@ -245,7 +245,7 @@
 
     bool debug = true;
 
-    in = opt->getValue("fieldA");
+    in = opt->getValue("first");
     if (in == 0)
     {
         in = "./tests/strikeslip_tet4_1000m_t0.vtk:displacements_t0";
@@ -257,11 +257,11 @@
     }
     inputA = in;
     parse_dataset_path(inputA, locationA, inputfileA, extA);
-    std::cout << "fieldA location = " << locationA << std::endl;
-    std::cout << "fieldA inputfile = " << inputfileA << std::endl;
-    std::cout << "fieldA extension = " << extA << std::endl;
+    std::cout << "first field location = " << locationA << std::endl;
+    std::cout << "first field inputfile = " << inputfileA << std::endl;
+    std::cout << "first field extension = " << extA << std::endl;
 
-    in = opt->getValue("fieldB");
+    in = opt->getValue("second");
     if (in == 0)
     {
         in = "./tests/strikeslip_hex8_1000m_t0.vtk:displacements_t0";
@@ -273,9 +273,9 @@
     }
     inputB = in;
     parse_dataset_path(inputB, locationB, inputfileB, extB);
-    std::cout << "fieldB location = " << locationB << std::endl;
-    std::cout << "fieldB inputfile = " << inputfileB << std::endl;
-    std::cout << "fieldB extension = " << extB << std::endl;
+    std::cout << "second field location = " << locationB << std::endl;
+    std::cout << "second field inputfile = " << inputfileB << std::endl;
+    std::cout << "second field extension = " << extB << std::endl;
 
     in = opt->getValue("output");
     if (in == 0)



More information about the cig-commits mailing list