Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
22315a82
Commit
22315a82
authored
Jul 20, 2009
by
Thomas Witkowski
Browse files
Small bug in ellipt example.
parent
ba416bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/src/ellipt.cc
View file @
22315a82
...
...
@@ -24,6 +24,8 @@ class F : public AbstractFunction<double, WorldVector<double> >
{
public:
F
(
int
degree
)
:
AbstractFunction
<
double
,
WorldVector
<
double
>
>
(
degree
)
{}
/// Implementation of AbstractFunction::operator().
double
operator
()(
const
WorldVector
<
double
>&
x
)
const
{
...
...
@@ -69,8 +71,9 @@ int main(int argc, char* argv[])
ellipt
.
addMatrixOperator
(
&
matrixOperator
);
// ===== create rhs operator =====
int
degree
=
ellipt
.
getFESpace
()
->
getBasisFcts
()
->
getDegree
();
Operator
rhsOperator
(
Operator
::
VECTOR_OPERATOR
,
ellipt
.
getFESpace
());
rhsOperator
.
addZeroOrderTerm
(
new
CoordsAtQP_ZOT
(
new
F
()));
rhsOperator
.
addZeroOrderTerm
(
new
CoordsAtQP_ZOT
(
new
F
(
degree
)));
ellipt
.
addVectorOperator
(
&
rhsOperator
);
// ===== start adaption loop =====
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment