diff --git a/FunctionSpace/TriNodeBasis.cpp b/FunctionSpace/TriNodeBasis.cpp index 1cf10b7f7b29d6e38ad10b089c46d7e1a1e6a354..8d0584ffa2493373310d2cf361fd0ffe905746af 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;