[cig-commits] commit 2332 by bangerth to /var/svn/dealii/aspect
dealii.demon at gmail.com
dealii.demon at gmail.com
Mon Mar 10 14:00:29 PDT 2014
Revision 2332
Only produce output on processor zero.
U trunk/aspect/source/main.cc
http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2332&peg=2332
Diff:
Modified: trunk/aspect/source/main.cc
===================================================================
--- trunk/aspect/source/main.cc 2014-03-05 17:03:28 UTC (rev 2331)
+++ trunk/aspect/source/main.cc 2014-03-10 21:00:23 UTC (rev 2332)
@@ -136,16 +136,20 @@
+ dlerror() + ">."));
}
- std::cout << std::endl;
+ if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
+ std::cout << std::endl;
#else
- std::cerr << std::endl << std::endl
- << "----------------------------------------------------"
- << std::endl;
- std::cerr << "You can not load additional shared libraries on " << std::endl
- << "systems where you link ASPECT as a static executable."
- << std::endl
- << "----------------------------------------------------"
- << std::endl;
+ if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
+ {
+ std::cerr << std::endl << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+ std::cerr << "You can not load additional shared libraries on " << std::endl
+ << "systems where you link ASPECT as a static executable."
+ << std::endl
+ << "----------------------------------------------------"
+ << std::endl;
+ }
std::exit (1);
#endif
}
More information about the CIG-COMMITS
mailing list