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
5b370a25
Commit
5b370a25
authored
1 year ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Add flag to deactivate nodecache
parent
db94c467
Branches
issue/no-node-cache
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
amdis/functions/LocalView.hpp
+10
-0
10 additions, 0 deletions
amdis/functions/LocalView.hpp
with
10 additions
and
0 deletions
amdis/functions/LocalView.hpp
+
10
−
0
View file @
5b370a25
...
...
@@ -23,8 +23,12 @@ namespace AMDiS
/// Tree of local finite elements / local shape function sets
using
Tree
=
typename
Super
::
Tree
;
#ifndef AMDIS_NO_NODECACHE
/// Cached basis-tree
using
TreeCache
=
NodeCache_t
<
Tree
>
;
#else
using
TreeCache
=
Tree
;
#endif
public:
/// \brief Construct local view for a given global finite element basis
...
...
@@ -35,10 +39,14 @@ namespace AMDiS
/// \brief Cached version of the local ansatz tree
TreeCache
const
&
treeCache
()
const
{
#ifndef AMDIS_NO_NODECACHE
if
(
!
treeCache_
)
treeCache_
.
emplace
(
makeNodeCache
(
Super
::
tree_
));
return
*
treeCache_
;
#else
return
Super
::
tree_
;
#endif
}
/// \brief Return this local-view
...
...
@@ -48,7 +56,9 @@ namespace AMDiS
}
protected
:
#ifndef AMDIS_NO_NODECACHE
mutable
OptionalNoCopy
<
TreeCache
>
treeCache_
=
std
::
nullopt
;
#endif
};
}
// end namespace AMDiS
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