Skip to content
Snippets Groups Projects
Commit 23b0a628 authored by Youett, Jonathan's avatar Youett, Jonathan Committed by akbib@FU-BERLIN.DE
Browse files

bugfixes

[[Imported from SVN: r7928]]
parent ba13e5da
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <dune/gfe/globalgfetestfunctionbasis.hh> #include <dune/gfe/globalgfetestfunctionbasis.hh>
#include "multiindex.hh"
#include "valuefactory.hh" #include "valuefactory.hh"
const double eps = 1e-6; const double eps = 1e-6;
...@@ -42,19 +41,20 @@ void test() ...@@ -42,19 +41,20 @@ void test()
typedef GlobalGFETestFunctionBasis<P1Basis,TargetSpace> GlobalBasis; typedef GlobalGFETestFunctionBasis<P1Basis,TargetSpace> GlobalBasis;
GlobalBasis basis(p1Basis,testPoints); GlobalBasis basis(p1Basis,testPoints);
typedef typename OneDGrid::Codim<0>::Iterator ElementIterator; typedef typename OneDGrid::Codim<0>::LeafIterator ElementIterator;
ElementIterator eIt = grid.leafbegin<0>(); ElementIterator eIt = grid.leafbegin<0>();
ElementIterator eEndIt = grid.leafEnd<0>(); ElementIterator eEndIt = grid.leafend<0>();
for (; eIt != eEndIt; ++eIt) { for (; eIt != eEndIt; ++eIt) {
const typename GlobalBasis::LocalFiniteElement& lfe = basis.getLocalFiniteElement(*eIt); const typename GlobalBasis::LocalFiniteElement& lfe = basis.getLocalFiniteElement(*eIt);
FieldVector<double,1> stupidTestPoint(0.5); FieldVector<double,1> stupidTestPoint(0);
std::vector<Dune::array<typename TargetSpace::EmbeddedTangentVector, TargetSpace::TangentVector::dimension> > values; std::vector<Dune::array<typename TargetSpace::EmbeddedTangentVector, TargetSpace::TangentVector::dimension> > values;
lfe.localBasis().evaluateFunction(stupidTestPoint, values); lfe.localBasis().evaluateFunction(stupidTestPoint, values);
for(size_t i=0;i<values.size();i++)
int i = basis.index(*eIt,1); std::cout<<values[i]<<std::endl;
//int i = basis.index(*eIt,1);
} }
} }
......
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