From 0533b50afd3d1db7252d7ed92fcdccacd866fe1f Mon Sep 17 00:00:00 2001 From: Nicolas Marsic <nicolas.marsic@gmail.com> Date: Fri, 7 Sep 2012 08:34:19 +0000 Subject: [PATCH] BasisTest Fix --- FunctionSpace/BasisTest.cpp | 2 +- FunctionSpace/FunctionSpace.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/FunctionSpace/BasisTest.cpp b/FunctionSpace/BasisTest.cpp index 441f800ed5..f215d28a64 100644 --- a/FunctionSpace/BasisTest.cpp +++ b/FunctionSpace/BasisTest.cpp @@ -19,7 +19,7 @@ using namespace std; -int ain(int argc, char** argv){ +int basisTest(int argc, char** argv){ // Init Gmsh // GmshInitialize(argc, argv); diff --git a/FunctionSpace/FunctionSpace.cpp b/FunctionSpace/FunctionSpace.cpp index 770a5813ea..22024d648a 100644 --- a/FunctionSpace/FunctionSpace.cpp +++ b/FunctionSpace/FunctionSpace.cpp @@ -92,17 +92,17 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ int it = 0; // Add Vertex Based Dof // - for(int i = 0; i < nVertex; i++){ - for(int j = 0; j < nFVertex; j++){ - myDof[it].setDof(mesh->getGlobalId(*vertex[i]), j); + for(int i = 0; i < nFVertex; i++){ + for(int j = 0; j < nVertex; j++){ + myDof[it].setDof(mesh->getGlobalId(*vertex[j]), i); it++; } } // Add Edge Based Dof // - for(int i = 0; i < nEdge; i++){ - for(int j = 0; j < nFEdge; j++){ - myDof[it].setDof(mesh->getGlobalId(edge[i]), j); + for(int i = 0; i < nFEdge; i++){ + for(int j = 0; j < nEdge; j++){ + myDof[it].setDof(mesh->getGlobalId(edge[j]), i); it++; } } @@ -116,8 +116,8 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ } */ // Add Cell Based Dof // - for(int j = 0; j < nFCell; j++){ - myDof[it].setDof(mesh->getGlobalId(element), j); + for(int i = 0; i < nFCell; i++){ + myDof[it].setDof(mesh->getGlobalId(element), i); it++; } -- GitLab