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

Switch to second-order finite elements

[[Imported from SVN: r9667]]
parent 76c828e0
No related branches found
No related tags found
No related merge requests found
#include <config.h>
#define SECOND_ORDER
#include <fenv.h>
// Includes for the ADOL-C automatic differentiation library
......@@ -25,6 +27,7 @@
#include <dune/fufem/functiontools/boundarydofs.hh>
#include <dune/fufem/functiontools/basisinterpolator.hh>
#include <dune/fufem/functionspacebases/p1nodalbasis.hh>
#include <dune/fufem/functionspacebases/p2nodalbasis.hh>
#include <dune/solvers/solvers/iterativesolver.hh>
#include <dune/solvers/norms/energynorm.hh>
......@@ -191,7 +194,11 @@ int main (int argc, char *argv[]) try
typedef GridType::LeafGridView GridView;
GridView gridView = grid->leafGridView();
#ifdef SECOND_ORDER
typedef P2NodalBasis<GridView,double> FEBasis;
#else
typedef P1NodalBasis<GridView,double> FEBasis;
#endif
FEBasis feBasis(gridView);
// /////////////////////////////////////////
......
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