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

dealii.demon at gmail.com dealii.demon at gmail.com
Tue Aug 13 02:44:37 PDT 2013


Revision 1828

Minor code updates. Use message already used elsewhere.

U   trunk/aspect/source/postprocess/tracer.cc


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

Diff:
Modified: trunk/aspect/source/postprocess/tracer.cc
===================================================================
--- trunk/aspect/source/postprocess/tracer.cc	2013-08-13 00:31:59 UTC (rev 1827)
+++ trunk/aspect/source/postprocess/tracer.cc	2013-08-13 09:44:00 UTC (rev 1828)
@@ -39,7 +39,6 @@
     std::pair<std::string,std::string>
     PassiveTracers<dim>::execute (TableHandler &statistics)
     {
-      std::string     result_string = "done.", data_file_name;
       bool            output_data = false;
 
       if (!initialized)
@@ -94,16 +93,16 @@
           initialized = true;
         }
 
+      std::string     result_string = "done.", data_file_name;
+
       // If it's time to generate an output file, call the appropriate functions and reset the timer
       if (this->get_time() >= next_data_output_time)
         {
           set_next_data_output_time (this->get_time());
           data_file_name = output->output_particle_data(world.get_particles(),
                                                         this->get_time());
-          output_data = true;
+          result_string += ". Writing particle graphical output " + data_file_name;
         }
-      if (output_data)
-        result_string += " Wrote particle data: " + data_file_name + ".";
 
       // Advance the particles in the world by the current timestep
       world.advance_timestep (this->get_timestep(),


More information about the CIG-COMMITS mailing list