[cig-commits] r14412 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Sat Mar 21 09:57:45 PDT 2009


Author: luis
Date: 2009-03-21 09:57:45 -0700 (Sat, 21 Mar 2009)
New Revision: 14412

Modified:
   cs/cigma/trunk/src/cli_function_info_cmd.cpp
Log:
Change function-info to print the point & value last

This change was made to avoid scrolling the terminal when
searching for the final value at the given point

Modified: cs/cigma/trunk/src/cli_function_info_cmd.cpp
===================================================================
--- cs/cigma/trunk/src/cli_function_info_cmd.cpp	2009-03-21 16:57:43 UTC (rev 14411)
+++ cs/cigma/trunk/src/cli_function_info_cmd.cpp	2009-03-21 16:57:45 UTC (rev 14412)
@@ -190,9 +190,6 @@
             print_mesh_info(cout, *(field->mesh), meshfile);
         }
 
-        cout << endl;
-        cout << "Point Query:" << endl;
-
         if (point.size() != dim)
         {
             cout << "Error: Dimension of point (" << point.size()
@@ -218,24 +215,7 @@
         value.resize(rank);
         bool found2 = fn->eval(&point[0], &value[0]);
 
-        // Print point
-        cout << indent << "Point ";
-        print_point(cout, point);
-        cout << endl;
 
-        // Print function value
-        cout << indent << "Value ";
-        if (found2)
-        {
-            print_point(cout, value);
-        }
-        else
-        {
-            cout << "undefined";
-        }
-        cout << endl;
-        
-
         // Print node coordinates in cell, as well as associated degrees of freedom
         if (field != 0)
         {
@@ -340,6 +320,28 @@
 
         } // if (field != 0)
 
+
+        cout << endl;
+        cout << "Point Query:" << endl;
+
+        // Print point
+        cout << indent << "Point ";
+        print_point(cout, point);
+        cout << endl;
+
+        // Print function value
+        cout << indent << "Value ";
+        if (found2)
+        {
+            print_point(cout, value);
+        }
+        else
+        {
+            cout << "undefined";
+        }
+        cout << endl;
+        
+
     }
     else
     {



More information about the CIG-COMMITS mailing list