Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
amdis
amdis-core
Commits
b842f5d8
Commit
b842f5d8
authored
6 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
localfunction of discsretefunction could not be stored without the discretefunction object
parent
e034a097
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/amdis/gridfunctions/DiscreteFunction.inc.hpp
+13
-13
13 additions, 13 deletions
src/amdis/gridfunctions/DiscreteFunction.inc.hpp
with
13 additions
and
13 deletions
src/amdis/gridfunctions/DiscreteFunction.inc.hpp
+
13
−
13
View file @
b842f5d8
...
...
@@ -23,9 +23,9 @@ private:
public
:
LocalFunction
(
DiscreteFunction
const
&
globalFunction
)
:
globalFunction_
(
&
globalFunction
)
,
localView_
(
globalFunction_
->
basis
().
localView
())
,
subTree_
(
&
child
(
localView_
.
tree
(),
globalFunction_
->
treePath
()))
:
globalFunction_
(
globalFunction
)
,
localView_
(
globalFunction_
.
basis
().
localView
())
,
subTree_
(
&
child
(
localView_
.
tree
(),
globalFunction_
.
treePath
()))
{}
/// \brief Bind the LocalView to the element
...
...
@@ -48,7 +48,7 @@ public:
/// \brief Create a LocalFunction representing the gradient. \relates GradientLocalFunction
friend
GradientLocalFunction
derivative
(
LocalFunction
const
&
localFunction
)
{
return
GradientLocalFunction
{
*
localFunction
.
globalFunction_
};
return
GradientLocalFunction
{
localFunction
.
globalFunction_
};
}
/// \brief The \ref polynomialDegree() of the LocalFunctions
...
...
@@ -66,7 +66,7 @@ public:
}
private
:
DiscreteFunction
const
*
globalFunction_
;
DiscreteFunction
globalFunction_
;
LocalView
localView_
;
SubTree
const
*
subTree_
;
bool
bound_
=
false
;
...
...
@@ -94,9 +94,9 @@ private:
public
:
GradientLocalFunction
(
DiscreteFunction
const
&
globalFunction
)
:
globalFunction_
(
&
globalFunction
)
,
localView_
(
globalFunction_
->
basis
().
localView
())
,
subTree_
(
&
child
(
localView_
.
tree
(),
globalFunction_
->
treePath
()))
:
globalFunction_
(
globalFunction
)
,
localView_
(
globalFunction_
.
basis
().
localView
())
,
subTree_
(
&
child
(
localView_
.
tree
(),
globalFunction_
.
treePath
()))
{}
void
bind
(
Element
const
&
element
)
...
...
@@ -130,7 +130,7 @@ public:
}
private
:
DiscreteFunction
const
*
globalFunction_
;
DiscreteFunction
globalFunction_
;
LocalView
localView_
;
SubTree
const
*
subTree_
;
Dune
::
Std
::
optional
<
Geometry
>
geometry_
;
...
...
@@ -145,8 +145,8 @@ LocalFunction::operator()(Domain const& x) const
assert
(
bound_
);
auto
y
=
Range
(
0
);
auto
&&
coefficients
=
*
globalFunction_
->
dofVector_
;
auto
&&
nodeToRangeEntry
=
globalFunction_
->
nodeToRangeEntry_
;
auto
&&
coefficients
=
*
globalFunction_
.
dofVector_
;
auto
&&
nodeToRangeEntry
=
globalFunction_
.
nodeToRangeEntry_
;
forEachLeafNode_
(
*
subTree_
,
[
&
,
this
](
auto
const
&
node
,
auto
const
&
tp
)
{
auto
&&
fe
=
node
.
finiteElement
();
...
...
@@ -191,8 +191,8 @@ GradientLocalFunction::operator()(Domain const& x) const
for
(
std
::
size_t
j
=
0
;
j
<
dy
.
size
();
++
j
)
dy
[
j
]
=
0
;
auto
&&
coefficients
=
*
globalFunction_
->
dofVector_
;
auto
&&
nodeToRangeEntry
=
globalFunction_
->
nodeToRangeEntry_
;
auto
&&
coefficients
=
*
globalFunction_
.
dofVector_
;
auto
&&
nodeToRangeEntry
=
globalFunction_
.
nodeToRangeEntry_
;
forEachLeafNode_
(
*
subTree_
,
[
&
,
this
](
auto
const
&
node
,
auto
const
&
tp
)
{
// TODO: may DOFVectorView::Range to FieldVector type if necessary
...
...
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