From 09b82aa42ab6f94c7b5c00b2c19f2945f5985530 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Fri, 21 May 2010 16:36:00 +0000 Subject: [PATCH] git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@322 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- .../mathematics/lcp/LCPProjectedGaussSeidel.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sources/reactphysics3d/mathematics/lcp/LCPProjectedGaussSeidel.cpp b/sources/reactphysics3d/mathematics/lcp/LCPProjectedGaussSeidel.cpp index 7da2e8b0..3e57f895 100644 --- a/sources/reactphysics3d/mathematics/lcp/LCPProjectedGaussSeidel.cpp +++ b/sources/reactphysics3d/mathematics/lcp/LCPProjectedGaussSeidel.cpp @@ -43,7 +43,7 @@ void LCPProjectedGaussSeidel::solve(const Matrix** const J_sp, const Matrix** co Body* indexBody1, indexBody2; double deltaLambda; uint i, iter; - Vector a(6*nbBodies); + Vector* a = new Vector(6)[nbBodies]; // Array that contains nbBodies vector of dimension 6x1 // For each constraint for (i=0; i bodyNumberMappingVector& a) { + const Matrix** const B_sp, std::map bodyNumberMapping, + Vector* const a) { uint i; Body* indexBody1, indexBody2; @@ -77,7 +79,8 @@ void LCPProjectedGaussSeidel::computeVectorA(const Vector& lambda, uint nbConstr for(i=0; i