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

dealii.demon at gmail.com dealii.demon at gmail.com
Sun Oct 6 07:48:24 PDT 2013


Revision 1940

report number of MPI tasks (and multithreading). Latest deal.II dev version required

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


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

Diff:
Modified: trunk/aspect/source/simulator/core.cc
===================================================================
--- trunk/aspect/source/simulator/core.cc	2013-10-06 14:17:28 UTC (rev 1939)
+++ trunk/aspect/source/simulator/core.cc	2013-10-06 14:47:40 UTC (rev 1940)
@@ -1130,6 +1130,18 @@
   template <int dim>
   void Simulator<dim>::run ()
   {
+    {
+      const int n_tasks = Utilities::MPI::n_mpi_processes(mpi_communicator);
+      pcout << "Running with " << n_tasks << " MPI tasks";
+#if (DEAL_II_MAJOR*100 + DEAL_II_MINOR) >= 801
+      const int n_threads = multithread_info.n_threads();
+      if (n_threads>1)
+        pcout << " using " << n_threads << "each";
+#endif
+      pcout << "." << std::endl;
+    }
+
+
     unsigned int max_refinement_level = parameters.initial_global_refinement +
                                         parameters.initial_adaptive_refinement;
     unsigned int pre_refinement_step = 0;


More information about the CIG-COMMITS mailing list