yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01093
[svn] r1712 - in trunk: pkg/common/Engine/DeusExMachina pkg/fem/Engine/EngineUnit pkg/fem/Engine/StandAloneEngine pkg/fem/PreProcessor pkg/lattice/Engine/EngineUnit pkg/lattice/Engine/StandAloneEngine pkg/lattice/PreProcessor pkg/lattice/RenderingEngine/GLDrawLatticeBeamState pkg/lattice/RenderingEngine/GLDrawLatticeInteractingGeometry pkg/lattice/RenderingEngine/GLDrawLatticeSetGeometry pkg/lattice/RenderingEngine/GLDrawLineSegment pkg/mass-spring/Engine/EngineUnit pkg/mass-spring/Engine/StandAloneEngine pkg/mass-spring/PreProcessor pkg/realtime-rigidbody/PreProcessor scripts
Author: eudoxos
Date: 2009-03-07 10:16:36 +0100 (Sat, 07 Mar 2009)
New Revision: 1712
Added:
trunk/scripts/linkdeps.py
Modified:
trunk/pkg/common/Engine/DeusExMachina/CinemCNCEngine.cpp
trunk/pkg/common/Engine/DeusExMachina/CinemKNCEngine.cpp
trunk/pkg/fem/Engine/EngineUnit/FEMSet2Tetrahedrons.cpp
trunk/pkg/fem/Engine/EngineUnit/FEMSetTextLoader.cpp
trunk/pkg/fem/Engine/EngineUnit/FEMTetrahedronStiffness.cpp
trunk/pkg/fem/Engine/StandAloneEngine/FEMLaw.cpp
trunk/pkg/fem/PreProcessor/FEMBeam.cpp
trunk/pkg/lattice/Engine/EngineUnit/LatticeSet2LatticeBeams.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/BeamRecorder.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.hpp
trunk/pkg/lattice/Engine/StandAloneEngine/MeasurePoisson.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/MovingSupport.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/NodeRecorder.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.cpp
trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.hpp
trunk/pkg/lattice/Engine/StandAloneEngine/StrainRecorder.cpp
trunk/pkg/lattice/PreProcessor/LatticeExample.cpp
trunk/pkg/lattice/RenderingEngine/GLDrawLatticeBeamState/GLDrawLatticeBeamState.cpp
trunk/pkg/lattice/RenderingEngine/GLDrawLatticeInteractingGeometry/GLDrawLatticeInteractingGeometry.cpp
trunk/pkg/lattice/RenderingEngine/GLDrawLatticeSetGeometry/GLDrawLatticeSetGeometry.cpp
trunk/pkg/lattice/RenderingEngine/GLDrawLineSegment/GLDrawLineSegment.cpp
trunk/pkg/mass-spring/Engine/EngineUnit/ParticleSet2Mesh2D.cpp
trunk/pkg/mass-spring/Engine/StandAloneEngine/MassSpringLaw.cpp
trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp
trunk/pkg/realtime-rigidbody/PreProcessor/RotatingBox.cpp
Log:
1. Fix #include's that include files not in the current source directory via "".
2. Add scripts/linkdeps.py that can automatically determine what plugin links to what other plugins, which can be once used for configurable monolithic/pluggable builds etc.
Modified: trunk/pkg/common/Engine/DeusExMachina/CinemCNCEngine.cpp
===================================================================
--- trunk/pkg/common/Engine/DeusExMachina/CinemCNCEngine.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/common/Engine/DeusExMachina/CinemCNCEngine.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,7 +8,7 @@
#include "CinemCNCEngine.hpp"
-#include "RigidBodyParameters.hpp"
+#include<yade/pkg-common/RigidBodyParameters.hpp>
#include<yade/pkg-common/InteractingBox.hpp>
#include<yade/pkg-common/Force.hpp>
#include<yade/pkg-dem/ElasticContactInteraction.hpp>
Modified: trunk/pkg/common/Engine/DeusExMachina/CinemKNCEngine.cpp
===================================================================
--- trunk/pkg/common/Engine/DeusExMachina/CinemKNCEngine.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/common/Engine/DeusExMachina/CinemKNCEngine.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,7 +8,7 @@
#include "CinemKNCEngine.hpp"
-#include "RigidBodyParameters.hpp"
+#include<yade/pkg-common/RigidBodyParameters.hpp>
#include<yade/pkg-common/InteractingBox.hpp>
#include<yade/pkg-common/Force.hpp>
#include<yade/pkg-dem/ElasticContactInteraction.hpp>
Modified: trunk/pkg/fem/Engine/EngineUnit/FEMSet2Tetrahedrons.cpp
===================================================================
--- trunk/pkg/fem/Engine/EngineUnit/FEMSet2Tetrahedrons.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/fem/Engine/EngineUnit/FEMSet2Tetrahedrons.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "FEMSet2Tetrahedrons.hpp"
-#include "FEMSetParameters.hpp"
-#include "FEMTetrahedronData.hpp"
+#include<yade/pkg-fem/FEMSetParameters.hpp>
+#include<yade/pkg-fem/FEMTetrahedronData.hpp>
#include<yade/pkg-common/Tetrahedron.hpp>
Modified: trunk/pkg/fem/Engine/EngineUnit/FEMSetTextLoader.cpp
===================================================================
--- trunk/pkg/fem/Engine/EngineUnit/FEMSetTextLoader.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/fem/Engine/EngineUnit/FEMSetTextLoader.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,9 +7,9 @@
*************************************************************************/
#include "FEMSetTextLoader.hpp"
-#include "FEMSetParameters.hpp"
-#include "FEMNodeData.hpp"
-#include "FEMTetrahedronData.hpp"
+#include<yade/pkg-fem/FEMSetParameters.hpp>
+#include<yade/pkg-fem/FEMNodeData.hpp>
+#include<yade/pkg-fem/FEMTetrahedronData.hpp>
#include<yade/pkg-common/Sphere.hpp>
#include<yade/pkg-common/Tetrahedron.hpp>
#include <boost/filesystem/convenience.hpp>
Modified: trunk/pkg/fem/Engine/EngineUnit/FEMTetrahedronStiffness.cpp
===================================================================
--- trunk/pkg/fem/Engine/EngineUnit/FEMTetrahedronStiffness.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/fem/Engine/EngineUnit/FEMTetrahedronStiffness.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,8 +7,8 @@
*************************************************************************/
#include "FEMTetrahedronStiffness.hpp"
-#include "FEMSetParameters.hpp"
-#include "FEMTetrahedronData.hpp"
+#include<yade/pkg-fem/FEMSetParameters.hpp>
+#include<yade/pkg-fem/FEMTetrahedronData.hpp>
Modified: trunk/pkg/fem/Engine/StandAloneEngine/FEMLaw.cpp
===================================================================
--- trunk/pkg/fem/Engine/StandAloneEngine/FEMLaw.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/fem/Engine/StandAloneEngine/FEMLaw.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
*************************************************************************/
#include "FEMLaw.hpp"
-#include "FEMTetrahedronData.hpp"
-#include "FEMNodeData.hpp"
+#include<yade/pkg-fem/FEMTetrahedronData.hpp>
+#include<yade/pkg-fem/FEMNodeData.hpp>
#include<yade/pkg-common/Force.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
Modified: trunk/pkg/fem/PreProcessor/FEMBeam.cpp
===================================================================
--- trunk/pkg/fem/PreProcessor/FEMBeam.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/fem/PreProcessor/FEMBeam.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -9,12 +9,12 @@
#include "FEMBeam.hpp"
-#include "FEMSetParameters.hpp"
-#include "FEMTetrahedronData.hpp"
-#include "FEMNodeData.hpp"
-#include "FEMTetrahedronStiffness.hpp"
-#include "FEMLaw.hpp"
-#include "FEMSetTextLoader.hpp"
+#include<yade/pkg-fem/FEMSetParameters.hpp>
+#include<yade/pkg-fem/FEMTetrahedronData.hpp>
+#include<yade/pkg-fem/FEMNodeData.hpp>
+#include<yade/pkg-fem/FEMTetrahedronStiffness.hpp>
+#include<yade/pkg-fem/FEMLaw.hpp>
+#include<yade/pkg-fem/FEMSetTextLoader.hpp>
// data
Modified: trunk/pkg/lattice/Engine/EngineUnit/LatticeSet2LatticeBeams.cpp
===================================================================
--- trunk/pkg/lattice/Engine/EngineUnit/LatticeSet2LatticeBeams.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/EngineUnit/LatticeSet2LatticeBeams.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,9 +7,9 @@
*************************************************************************/
#include "LatticeSet2LatticeBeams.hpp"
-#include "LatticeSetParameters.hpp"
-#include "LatticeBeamParameters.hpp"
-#include "LineSegment.hpp"
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LineSegment.hpp>
#include<yade/core/MetaBody.hpp>
void LatticeSet2LatticeBeams::go( const shared_ptr<PhysicalParameters>& ph
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/BeamRecorder.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/BeamRecorder.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/BeamRecorder.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "BeamRecorder.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
// to calculate strain of whole speciemen - first two bodies in subscribedBodies are Nodes. FIXME - make it clean!
#include <boost/lexical_cast.hpp>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,11 +7,11 @@
*************************************************************************/
#include "LatticeLaw.hpp"
-#include "LatticeBeamParameters.hpp"
-#include "LatticeBeamAngularSpring.hpp"
-#include "NonLocalDependency.hpp"
-#include "LatticeNodeParameters.hpp"
-#include "LatticeSetParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeBeamAngularSpring.hpp>
+#include<yade/pkg-lattice/NonLocalDependency.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
#include<yade/core/BodyContainer.hpp>
#include<yade/core/MetaBody.hpp>
#include<yade/lib-base/yadeWm3Extra.hpp>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.hpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.hpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/LatticeLaw.hpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -9,7 +9,7 @@
#pragma once
-#include "LatticeBeamParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
#include<yade/core/InteractionSolver.hpp>
#include<yade/core/BodyContainer.hpp>
#include <list>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/MeasurePoisson.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/MeasurePoisson.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/MeasurePoisson.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "MeasurePoisson.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
// to calculate strain of whole speciemen - first two bodies in subscribedBodies are Nodes. FIXME - make it clean!
#include <boost/lexical_cast.hpp>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/MovingSupport.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/MovingSupport.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/MovingSupport.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "MovingSupport.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
// to calculate strain of whole speciemen - first two bodies in subscribedBodies are Nodes. FIXME - make it clean!
#include <boost/lexical_cast.hpp>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/NodeRecorder.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/NodeRecorder.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/NodeRecorder.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "NodeRecorder.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
// to calculate strain of whole speciemen - first two bodies in subscribedBodies are Nodes. FIXME - make it clean!
#include <boost/lexical_cast.hpp>
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,10 +8,10 @@
#include "NonLocalInitializer.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
-#include "LatticeSetParameters.hpp"
-#include "NonLocalDependency.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
+#include<yade/pkg-lattice/NonLocalDependency.hpp>
NonLocalInitializer::NonLocalInitializer () : StandAloneEngine()
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.hpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.hpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/NonLocalInitializer.hpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -9,7 +9,7 @@
#pragma once
#include<yade/core/StandAloneEngine.hpp>
-#include "LatticeSetParameters.hpp"
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
class Body;
class BodyContainer;
Modified: trunk/pkg/lattice/Engine/StandAloneEngine/StrainRecorder.cpp
===================================================================
--- trunk/pkg/lattice/Engine/StandAloneEngine/StrainRecorder.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/Engine/StandAloneEngine/StrainRecorder.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,8 +8,8 @@
#include "StrainRecorder.hpp"
#include<yade/core/MetaBody.hpp>
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
// to calculate strain of whole speciemen - first two bodies in subscribedBodies are Nodes. FIXME - make it clean!
#include <boost/lexical_cast.hpp>
Modified: trunk/pkg/lattice/PreProcessor/LatticeExample.cpp
===================================================================
--- trunk/pkg/lattice/PreProcessor/LatticeExample.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/PreProcessor/LatticeExample.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -23,7 +23,7 @@
#include<yade/pkg-lattice/NonLocalInitializer.hpp>
#include<yade/lib-base/yadeWm3Extra.hpp>
-#include "LatticeInteractingGeometry.hpp"
+#include<yade/pkg-lattice/LatticeInteractingGeometry.hpp>
#include<yade/pkg-common/Sphere.hpp>
Modified: trunk/pkg/lattice/RenderingEngine/GLDrawLatticeBeamState/GLDrawLatticeBeamState.cpp
===================================================================
--- trunk/pkg/lattice/RenderingEngine/GLDrawLatticeBeamState/GLDrawLatticeBeamState.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/RenderingEngine/GLDrawLatticeBeamState/GLDrawLatticeBeamState.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,7 +7,7 @@
*************************************************************************/
#include "GLDrawLatticeBeamState.hpp"
-#include "LatticeBeamParameters.hpp"
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
#include<yade/lib-opengl/OpenGLWrapper.hpp>
void GLDrawLatticeBeamState::go(const shared_ptr<PhysicalParameters>& pp)
Modified: trunk/pkg/lattice/RenderingEngine/GLDrawLatticeInteractingGeometry/GLDrawLatticeInteractingGeometry.cpp
===================================================================
--- trunk/pkg/lattice/RenderingEngine/GLDrawLatticeInteractingGeometry/GLDrawLatticeInteractingGeometry.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/RenderingEngine/GLDrawLatticeInteractingGeometry/GLDrawLatticeInteractingGeometry.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,11 +7,11 @@
*************************************************************************/
#include "GLDrawLatticeInteractingGeometry.hpp"
-#include "LatticeSetGeometry.hpp"
-#include "LatticeSetParameters.hpp"
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
-#include "LatticeInteractingGeometry.hpp"
+#include<yade/pkg-lattice/LatticeSetGeometry.hpp>
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
+#include<yade/pkg-lattice/LatticeInteractingGeometry.hpp>
#include<yade/lib-opengl/OpenGLWrapper.hpp>
#include<yade/core/MetaBody.hpp>
#include<yade/core/Omega.hpp>
Modified: trunk/pkg/lattice/RenderingEngine/GLDrawLatticeSetGeometry/GLDrawLatticeSetGeometry.cpp
===================================================================
--- trunk/pkg/lattice/RenderingEngine/GLDrawLatticeSetGeometry/GLDrawLatticeSetGeometry.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/RenderingEngine/GLDrawLatticeSetGeometry/GLDrawLatticeSetGeometry.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,10 +7,10 @@
*************************************************************************/
#include "GLDrawLatticeSetGeometry.hpp"
-#include "LatticeSetGeometry.hpp"
-#include "LatticeSetParameters.hpp"
-#include "LatticeBeamParameters.hpp"
-#include "LatticeNodeParameters.hpp"
+#include<yade/pkg-lattice/LatticeSetGeometry.hpp>
+#include<yade/pkg-lattice/LatticeSetParameters.hpp>
+#include<yade/pkg-lattice/LatticeBeamParameters.hpp>
+#include<yade/pkg-lattice/LatticeNodeParameters.hpp>
#include<yade/lib-opengl/OpenGLWrapper.hpp>
#include<yade/core/MetaBody.hpp>
#include<yade/core/Omega.hpp>
Modified: trunk/pkg/lattice/RenderingEngine/GLDrawLineSegment/GLDrawLineSegment.cpp
===================================================================
--- trunk/pkg/lattice/RenderingEngine/GLDrawLineSegment/GLDrawLineSegment.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/lattice/RenderingEngine/GLDrawLineSegment/GLDrawLineSegment.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,7 +7,7 @@
*************************************************************************/
#include "GLDrawLineSegment.hpp"
-#include "LineSegment.hpp"
+#include<yade/pkg-lattice/LineSegment.hpp>
#include<yade/lib-opengl/OpenGLWrapper.hpp>
GLDrawLineSegment::GLDrawLineSegment() : maxLen(0)
Modified: trunk/pkg/mass-spring/Engine/EngineUnit/ParticleSet2Mesh2D.cpp
===================================================================
--- trunk/pkg/mass-spring/Engine/EngineUnit/ParticleSet2Mesh2D.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/mass-spring/Engine/EngineUnit/ParticleSet2Mesh2D.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,7 +7,7 @@
*************************************************************************/
#include "ParticleSet2Mesh2D.hpp"
-#include "ParticleSetParameters.hpp"
+#include<yade/pkg-mass-spring/ParticleSetParameters.hpp>
#include<yade/pkg-common/Mesh2D.hpp>
#include<yade/core/MetaBody.hpp>
Modified: trunk/pkg/mass-spring/Engine/StandAloneEngine/MassSpringLaw.cpp
===================================================================
--- trunk/pkg/mass-spring/Engine/StandAloneEngine/MassSpringLaw.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/mass-spring/Engine/StandAloneEngine/MassSpringLaw.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,8 +7,8 @@
*************************************************************************/
#include "MassSpringLaw.hpp"
-#include "SpringGeometry.hpp"
-#include "SpringPhysics.hpp"
+#include<yade/pkg-mass-spring/SpringGeometry.hpp>
+#include<yade/pkg-mass-spring/SpringPhysics.hpp>
#include<yade/core/Omega.hpp>
#include<yade/core/MetaBody.hpp>
#include<yade/pkg-common/Mesh2D.hpp>
Modified: trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp
===================================================================
--- trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/mass-spring/PreProcessor/HangingCloth.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -8,10 +8,10 @@
#include "HangingCloth.hpp"
-#include "MassSpringLaw.hpp"
-#include "ParticleSetParameters.hpp"
-#include "SpringGeometry.hpp"
-#include "SpringPhysics.hpp"
+#include<yade/pkg-mass-spring/MassSpringLaw.hpp>
+#include<yade/pkg-mass-spring/ParticleSetParameters.hpp>
+#include<yade/pkg-mass-spring/SpringGeometry.hpp>
+#include<yade/pkg-mass-spring/SpringPhysics.hpp>
#include<yade/core/Body.hpp>
Modified: trunk/pkg/realtime-rigidbody/PreProcessor/RotatingBox.cpp
===================================================================
--- trunk/pkg/realtime-rigidbody/PreProcessor/RotatingBox.cpp 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/pkg/realtime-rigidbody/PreProcessor/RotatingBox.cpp 2009-03-07 09:16:36 UTC (rev 1712)
@@ -7,7 +7,7 @@
*************************************************************************/
#include "RotatingBox.hpp"
-#include "FrictionLessElasticContactLaw.hpp"
+#include<yade/pkg-realtime-rigidbody/FrictionLessElasticContactLaw.hpp>
#include<yade/pkg-common/Box.hpp>
#include<yade/pkg-common/AABB.hpp>
Added: trunk/scripts/linkdeps.py
===================================================================
--- trunk/scripts/linkdeps.py 2009-03-04 09:29:01 UTC (rev 1711)
+++ trunk/scripts/linkdeps.py 2009-03-07 09:16:36 UTC (rev 1712)
@@ -0,0 +1,64 @@
+#!/usr/bin/python
+
+from sys import *
+import os,re
+from string import *
+
+srcRoot='./'
+
+from os.path import sep
+import shutil
+
+def getModule(dir):
+ m=re.match('^.*?'+sep+'((extra|core)|((gui|lib|pkg)'+sep+'.*?))(|'+sep+'.*)$',dir)
+ assert(m)
+ return m.group(1).replace(sep,'-')
+
+def walkSourceFiles():
+ ret=[]
+ for root, dirs, files in os.walk(srcRoot,topdown=True):
+ for d in ('.svn','mgpost','SpherePadder','QGLViewer','triangulation','sqlite3x','miniWm3'):
+ try: dirs.remove(d)
+ except ValueError: pass
+ for f in files:
+ if f in ('stdafx.cpp',): continue
+ if f.split('.')[-1] in ('cpp','cc','C'):
+ ret+=((root,f),)
+ return ret
+
+sources=walkSourceFiles()
+plugins=set()
+for dir,f in sources:
+ for l in open(dir+sep+f):
+ if 'YADE_PLUGIN' in l and getModule(dir) not in ('core',): plugins.add(f.split('.')[0])
+
+maxIncludeLevel=4
+def grepInc(path,f,level=0):
+ fullF=path+sep+f; baseName=f.split('.')[0]
+ deps=set()
+ if level==maxIncludeLevel: return set()
+ #print path,f
+ for l in open(fullF):
+ m=re.match('^#include<yade/([^/]*)/(.*)>.*$',l)
+ if m:
+ incMod=m.group(1); incHead=m.group(2); baseName=incHead.split('.')[0]; assert(len(incHead.split('.'))==2)
+ if incMod=='core': continue
+ #if baseName not in plugins: print f,incHead
+ deps.add(incHead.split('.')[0])
+ continue
+ m=re.match('^#include\s*"([^/]*)".*$',l)
+ if m:
+ inc=m.group(1); incBaseName=m.group(1).split('.')[0]
+ if not os.path.exists(path+sep+m.group(1)):
+ print "WARNING: file %s included from %s doesn't exist"%(m.group(1),fullF)
+ pass
+ else:
+ if m.group(1).split('.')[0] not in plugins or incBaseName==baseName:
+ deps.update(grepInc(path,m.group(1),level=level+1))
+ return deps
+#for dir,f in [('./pkg/common/Engine/DeusExMachina','JumpChangeSe3.cpp'),]: #sources:
+for dir,f in sources:
+ if getModule(dir) in ('core',): continue
+ d=grepInc(dir,f)
+ print f ,' '.join(d)
+
Property changes on: trunk/scripts/linkdeps.py
___________________________________________________________________
Name: svn:executable
+ *