Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
ag-ohlberger
dune-community
dune-gdt
Commits
8a3c33e0
Commit
8a3c33e0
authored
5 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[local.fe] add check and not to FlatTop
parent
57411068
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/gdt/local/finite-elements/default.hh
+1
-1
1 addition, 1 deletion
dune/gdt/local/finite-elements/default.hh
dune/gdt/local/finite-elements/flattop.hh
+6
-0
6 additions, 0 deletions
dune/gdt/local/finite-elements/flattop.hh
with
7 additions
and
1 deletion
dune/gdt/local/finite-elements/default.hh
+
1
−
1
View file @
8a3c33e0
...
...
@@ -180,7 +180,7 @@ public:
// TODO: Double checked locking pattern is not thread-safe without memory barriers.
if
(
fes_
.
count
(
key
)
==
0
)
{
// the FE needs to be created, we need to lock
std
::
lock_guard
<
std
::
mutex
>
DXTC_UNUSED
(
guard
)
(
mutex_
)
;
std
::
lock_guard
<
std
::
mutex
>
DXTC_UNUSED
(
guard
)
{
mutex_
}
;
// and to check again if someone else created the FE while we were waiting to acquire the lock
if
(
fes_
.
count
(
key
)
==
0
)
fes_
[
key
]
=
factory_
(
geometry_type
,
order
);
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/local/finite-elements/flattop.hh
+
6
−
0
View file @
8a3c33e0
...
...
@@ -24,6 +24,9 @@ namespace GDT {
/**
* Inspired by [Brenner, Davis, Sung, 2014, A partition of unity method for the displacement obstacle problem of clamped
* Kirchhoff plates], section 2
*
* \sa LocalFlatTop2dCubeFiniteElement
* \sa LocalFlatTopFiniteElementFactory
*/
...
...
@@ -41,6 +44,9 @@ public:
LocalFlatTop2dCubeFiniteElementBasis
(
const
double
&
overlap
=
0.5
)
:
geometry_type_
(
Dune
::
GeometryTypes
::
cube
(
2
))
{
DUNE_THROW_IF
(
!
(
overlap
>
0.
),
Exceptions
::
finite_element_error
,
"Overlap has to be in (0, 1], is "
<<
overlap
<<
"!"
);
DUNE_THROW_IF
(
overlap
>
1.
,
Exceptions
::
finite_element_error
,
"Overlap has to be in (0, 1], is "
<<
overlap
<<
"!"
);
// we cannot let L_ and R_ be members and define phi_L_ and phi_R_ in the ctor initializer list, as they will
// copy/reference broken/empty/default L_ and R_
const
auto
L_
=
(
1.
-
overlap
)
/
2.
;
...
...
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