[cig-commits] commit 2320 by gassmoeller to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Tue Feb 25 07:18:42 PST 2014


Revision 2320

Fixed unexpected timing output behaviour. If timing_output_frequency == 1 aspect should output timing information for the 0th time step also.

U   trunk/aspect/source/simulator/core.cc


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2320&peg=2320

Diff:
Modified: trunk/aspect/source/simulator/core.cc
===================================================================
--- trunk/aspect/source/simulator/core.cc	2014-02-24 15:43:57 UTC (rev 2319)
+++ trunk/aspect/source/simulator/core.cc	2014-02-25 15:18:39 UTC (rev 2320)
@@ -1439,8 +1439,10 @@
 
         // every n time steps output a summary of the current
         // timing information
-        if ((timestep_number > 0) && (parameters.timing_output_frequency != 0) &&
-            (timestep_number % parameters.timing_output_frequency == 0))
+        if (((timestep_number > 0) && (parameters.timing_output_frequency != 0) &&
+             (timestep_number % parameters.timing_output_frequency == 0))
+            ||
+            (parameters.timing_output_frequency == 1))
           {
             computing_timer.print_summary ();
             output_statistics();


More information about the CIG-COMMITS mailing list