Revision: 8907
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8907&view=rev
Author:   hsujohnhsu
Date:     2010-09-16 17:27:44 +0000 (Thu, 16 Sep 2010)

Log Message:
-----------
adding mpi includes

Modified Paths:
--------------
    code/gazebo/branches/mpi/gazebo_config.h.in
    code/gazebo/branches/mpi/server/World.cc

Modified: code/gazebo/branches/mpi/gazebo_config.h.in
===================================================================
--- code/gazebo/branches/mpi/gazebo_config.h.in 2010-09-15 15:42:21 UTC (rev 
8906)
+++ code/gazebo/branches/mpi/gazebo_config.h.in 2010-09-16 17:27:44 UTC (rev 
8907)
@@ -13,6 +13,7 @@
 #cmakedefine HAVE_DL 1
 #cmakedefine ENABLE_SHADOWS 1
 #cmakedefine INCLUDE_BULLET 1
+#cmakedefine INCLUDE_OMPI 1
 #cmakedefine INCLUDE_ODE 1
 #cmakedefine INCLUDE_ODE_JOINT_DAMPING 1
 #cmakedefine QUICKSTEP_EXPERIMENTAL 1

Modified: code/gazebo/branches/mpi/server/World.cc
===================================================================
--- code/gazebo/branches/mpi/server/World.cc    2010-09-15 15:42:21 UTC (rev 
8906)
+++ code/gazebo/branches/mpi/server/World.cc    2010-09-16 17:27:44 UTC (rev 
8907)
@@ -50,6 +50,11 @@
 
 #include "Geom.hh"
 
+#include "gazebo_config.h"
+#if INCLUDE_OMPI
+#include "mpi.h"
+#endif
+
 using namespace gazebo;
 
 
////////////////////////////////////////////////////////////////////////////////
@@ -360,6 +365,9 @@
   {
     {
       DIAGNOSTICTIMER(timer("World::Update Physics",6));
+#if INCLUDE_OMPI
+      fprintf(stderr,"MPI rank %d calling 
UpdatePhysics\n",MPI::COMM_WORLD.Get_rank());
+#endif
       this->physicsEngine->UpdatePhysics();
     }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to