Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
3ea14354
Commit
3ea14354
authored
Oct 22, 2016
by
Praetorius, Simon
Browse files
ellipt demo corrected, to accept expressions in operators
parent
4a9832fa
Changes
1
Show whitespace changes
Inline
Side-by-side
demo/src/ellipt.cc
View file @
3ea14354
...
@@ -45,14 +45,14 @@ int main(int argc, char* argv[])
...
@@ -45,14 +45,14 @@ int main(int argc, char* argv[])
// ===== create matrix operator =====
// ===== create matrix operator =====
Operator
matrixOperator
(
ellipt
.
getFeSpace
());
Operator
matrixOperator
(
ellipt
.
getFeSpace
());
matrixOperator
.
addSot
(
1.0
);
addSOT
(
matrixOperator
,
1.0
);
ellipt
.
addMatrixOperator
(
matrixOperator
,
0
,
0
);
ellipt
.
addMatrixOperator
(
matrixOperator
,
0
,
0
);
int
degree
=
ellipt
.
getFeSpace
()
->
getBasisFcts
()
->
getDegree
();
int
degree
=
ellipt
.
getFeSpace
()
->
getBasisFcts
()
->
getDegree
();
// ===== create rhs operator =====
// ===== create rhs operator =====
Operator
rhsOperator
(
ellipt
.
getFeSpace
());
Operator
rhsOperator
(
ellipt
.
getFeSpace
());
rhsOperator
.
addZot
(
eval
(
new
F
(
degree
)));
addZOT
(
rhsOperator
,
eval
(
new
F
(
degree
)));
ellipt
.
addVectorOperator
(
rhsOperator
,
0
);
ellipt
.
addVectorOperator
(
rhsOperator
,
0
);
// ===== add boundary conditions =====
// ===== add boundary conditions =====
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment