From 2898de4ddf8b4873ebd335e84cfef727f2e840c6 Mon Sep 17 00:00:00 2001
From: Nicolas Marsic <nicolas.marsic@gmail.com>
Date: Mon, 19 Nov 2012 11:18:27 +0000
Subject: [PATCH] Some ReWriting of TriNodeBasis: Seems OK

---
 FunctionSpace/TriNodeBasis.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/FunctionSpace/TriNodeBasis.cpp b/FunctionSpace/TriNodeBasis.cpp
index 1cf10b7f7b..8d0584ffa2 100644
--- a/FunctionSpace/TriNodeBasis.cpp
+++ b/FunctionSpace/TriNodeBasis.cpp
@@ -72,12 +72,12 @@ TriNodeBasis::TriNodeBasis(int order){
   // Lagrange Sub //
   for(int e = 0; e < 3; e++){
     lagrangeSub[0][e] = 
-      *(*node)[edgeV[0][e][0]] - 
-      *(*node)[edgeV[0][e][1]];
+      *(*node)[edgeV[0][e][1]] - 
+      *(*node)[edgeV[0][e][0]];
     
     lagrangeSub[1][e] = 
-      *(*node)[edgeV[1][e][0]] - 
-      *(*node)[edgeV[1][e][1]];
+      *(*node)[edgeV[1][e][1]] - 
+      *(*node)[edgeV[1][e][0]];
   }
 
  
@@ -97,7 +97,7 @@ TriNodeBasis::TriNodeBasis(int order){
 
 
   // Cell Based //
-  Polynomial p             = *(*node)[2] * 2 - Polynomial(1, 0, 0, 0);
+  Polynomial p             = (*(*node)[2] * 2) - Polynomial(1, 0, 0, 0);
   const int  orderMinusTwo = order - 2;
 
   unsigned int i = 0;
-- 
GitLab