Skip to content
Snippets Groups Projects
Commit 202d5ecd authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

High Order -- Test -- KO

parent 0533b50a
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ int basisTest(int argc, char** argv){ ...@@ -32,7 +32,7 @@ int basisTest(int argc, char** argv){
writer.setDomain(goe.getAll()); writer.setDomain(goe.getAll());
// Plot Basis // // Plot Basis //
HexNodeBasis b(1); TriNodeBasis b(3);
PlotBasis plot(b, goe, writer); PlotBasis plot(b, goe, writer);
plot.plot("basis"); plot.plot("basis");
......
...@@ -90,7 +90,7 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ ...@@ -90,7 +90,7 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{
vector<Dof> myDof(nDof); vector<Dof> myDof(nDof);
int it = 0; int it = 0;
// Add Vertex Based Dof // // Add Vertex Based Dof //
for(int i = 0; i < nFVertex; i++){ for(int i = 0; i < nFVertex; i++){
for(int j = 0; j < nVertex; j++){ for(int j = 0; j < nVertex; j++){
...@@ -108,9 +108,9 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ ...@@ -108,9 +108,9 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{
} }
/* /*
// Add Face Based Dof // // Add Face Based Dof //
for(int i = 0; i < nFace; i++){ for(int i = 0; i < nFFace; i++){
for(int j = 0; j < nFFace; j++){ for(int j = 0; j < nFace; j++){
myDof[it].setDof(mesh->getGlobalId(face[i]), j); myDof[it].setDof(mesh->getGlobalId(face[j]), i);
it++; it++;
} }
} }
...@@ -120,8 +120,7 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ ...@@ -120,8 +120,7 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{
myDof[it].setDof(mesh->getGlobalId(element), i); myDof[it].setDof(mesh->getGlobalId(element), i);
it++; it++;
} }
return myDof; return myDof;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment