Skip to content
Snippets Groups Projects
Commit 21105d12 authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Be more dimension-agnostic, and use 1d grids for the time being

They are easier to debug

[[Imported from SVN: r9417]]
parent 7a7d789c
No related branches found
No related tags found
No related merge requests found
......@@ -58,17 +58,18 @@ void compareMatrices(const Matrix<FieldMatrix<double,blocksize,blocksize> >& fdM
int testHarmonicEnergy() {
size_t nDofs = 4;
const int dim = 2;
const int dim = 1;
typedef YaspGrid<dim> GridType;
FieldVector<double,dim> l(1);
std::array<int,dim> elements = {{1, 1}};
std::array<int,dim> elements;
std::fill(elements.begin(), elements.end(), 1);
GridType grid(l,elements);
typedef Q1LocalFiniteElement<double,double,dim> LocalFE;
LocalFE localFiniteElement;
size_t nDofs = localFiniteElement.localBasis().size();
typedef UnitVector<double,3> TargetSpace;
std::vector<TargetSpace> localSolution(nDofs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment