Skip to content
Snippets Groups Projects
Commit cd21b7d8 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

go back to a trivial problem for testing

[[Imported from SVN: r8967]]
parent f31140a1
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
//#define HARMONIC_ENERGY_FD_GRADIENT //#define HARMONIC_ENERGY_FD_GRADIENT
//#define HARMONIC_ENERGY_FD_INNER_GRADIENT //#define HARMONIC_ENERGY_FD_INNER_GRADIENT
#define THIRD_ORDER //#define THIRD_ORDER
//#define SECOND_ORDER //#define SECOND_ORDER
const int order = 3; const int order = 1;
#include <dune/common/bitsetvector.hh> #include <dune/common/bitsetvector.hh>
#include <dune/common/parametertree.hh> #include <dune/common/parametertree.hh>
...@@ -64,9 +64,9 @@ struct DirichletFunction ...@@ -64,9 +64,9 @@ struct DirichletFunction
double angle = 0.5 * M_PI * x[0]; double angle = 0.5 * M_PI * x[0];
angle *= -4*x[1]*(x[1]-1); angle *= -4*x[1]*(x[1]-1);
out = 0; out = 0;
out[0] = std::cos(angle); // out[0] = std::cos(angle);
out[1] = std::sin(angle); // out[1] = std::sin(angle);
out[2] = 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