Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pacxx-projectseminar-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladyslav Kucher
pacxx-projectseminar-2019
Commits
5a37eef9
Commit
5a37eef9
authored
6 years ago
by
Jö Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
Build both Nitsche and non-Nitsche version
parent
93935a13
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
excercise-solution/CMakeLists.txt
+7
-0
7 additions, 0 deletions
excercise-solution/CMakeLists.txt
excercise-solution/driver.hh
+5
-2
5 additions, 2 deletions
excercise-solution/driver.hh
excercise-solution/solution01.cc
+4
-1
4 additions, 1 deletion
excercise-solution/solution01.cc
with
16 additions
and
3 deletions
excercise-solution/CMakeLists.txt
+
7
−
0
View file @
5a37eef9
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
)
This diff is collapsed.
Click to expand it.
excercise-solution/driver.hh
+
5
−
2
View file @
5a37eef9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
excercise-solution/solution01.cc
+
4
−
1
View file @
5a37eef9
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment