Skip to content
Snippets Groups Projects
Commit 5a37eef9 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Build both Nitsche and non-Nitsche version

parent 93935a13
No related branches found
No related tags found
No related merge requests found
add_executable(solution01 solution01.cc)
add_executable(nitschesolution1 solution01.cc)
set_property(TARGET nitschesolution1
APPEND
PROPERTY COMPILE_DEFINITIONS
NITSCHE
)
dune_symlink_to_source_files(FILES tutorial01.ini unitsquare.geo unitsquare.msh unitcube.msh)
......@@ -57,11 +57,14 @@ void driver (const GV& gv, const FEM& fem,
// Make a local operator
//== Exercise 2 {
// typedef NonlinearPoissonFEM<Problem<RF>,FEM> LOP;
// LOP lop(problem);
#ifdef NITSCHE
RF stab = ptree.get("fem.stab",(RF)1);
typedef NitscheNonlinearPoissonFEM<Problem<RF>,FEM> LOP;
LOP lop(problem,stab);
#else
typedef NonlinearPoissonFEM<Problem<RF>,FEM> LOP;
LOP lop(problem);
#endif
//== }
// Make a global operator
......
......@@ -57,8 +57,11 @@
// include all components making up this tutorial
//== Exercise 2 {
// #include"nonlinearpoissonfem.hh"
#ifdef NITSCHE
#include "nitschenonlinearpoissonfem.hh"
#else
#include "nonlinearpoissonfem.hh"
#endif
//== }
#include"problem.hh"
#include"driver.hh"
......
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