Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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-xt
Commits
cf70396c
Commit
cf70396c
authored
6 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[functors.boundary-detector] add add_to_result method
parent
4276ffe6
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
.gitsuper
+4
-4
4 additions, 4 deletions
.gitsuper
dune/xt/grid/functors/boundary-detector.hh
+16
-0
16 additions, 0 deletions
dune/xt/grid/functors/boundary-detector.hh
with
20 additions
and
4 deletions
.gitsuper
+
4
−
4
View file @
cf70396c
...
...
@@ -14,10 +14,10 @@ status = 1a3bcab04b011a5d6e44f9983cae6ff89fa695e8 bin (heads/master)
741e4f8e53bdd3e1b6e19d84eb22b6e3dc48526c dune-python (remotes/origin/releases/2.5)
26cc8cb4161a3a51002ab2a81b8c81d2c951ee79 dune-testtools (remotes/origin/p/renemilk/testname_listing_hack_no-skiptest)
0a74e7dd0b2115778a5d490dab08a2ed07fcaa1e dune-uggrid (v2.5.2)
+
7d4cb994b3aad0e0ff73172b187e35bbf191bf29
dune-xt-common (heads/dailywork_tleibner)
+
30e7ad34db59be19bbf67bb72fc52eba50a5245d
dune-xt-common (heads/dailywork_tleibner)
+3e3f3bf06e21cbbf3c0a559891b44c6f5d987d0f dune-xt-data (heads/master)
+f05aa7470ead4150ca7a91894cd2ad77dfcedc46 dune-xt-functions (heads/new-master)
+
5be0c7c0e69d6364022421b866016d6443280cf
2 dune-xt-grid (heads/new-master)
+
4276ffe6f0f1f28217eb6f8f064f5b86d7b8986
2 dune-xt-grid (heads/new-master)
+f6904b69f9a3ee5d45ee824d3b244e59cfed7ff4 dune-xt-la (heads/master)
09d0378f616b94d68bcdd9fc6114813181849ec0 scripts (heads/master)
commit = 5f5841ee7a2dff290b98845c46262151752189c1
...
...
@@ -95,7 +95,7 @@ commit = 0a74e7dd0b2115778a5d490dab08a2ed07fcaa1e
[submodule.dune-xt-common]
remote = git@github.com:dune-community/dune-xt-common.git
status = 2424627f0ad5de7e4aaa5e7f48bc2a02414d95a1 .vcsetup (heads/master)
commit =
7d4cb994b3aad0e0ff73172b187e35bbf191bf29
commit =
30e7ad34db59be19bbf67bb72fc52eba50a5245d
[submodule.dune-xt-data]
remote = git@github.com:dune-community/dune-xt-data
...
...
@@ -110,7 +110,7 @@ commit = f05aa7470ead4150ca7a91894cd2ad77dfcedc46
[submodule.dune-xt-grid]
remote = git@github.com:dune-community/dune-xt-grid.git
status = 2424627f0ad5de7e4aaa5e7f48bc2a02414d95a1 .vcsetup (heads/master)
commit =
5be0c7c0e69d6364022421b866016d6443280cf
2
commit =
4276ffe6f0f1f28217eb6f8f064f5b86d7b8986
2
[submodule.dune-xt-la]
remote = git@github.com:dune-community/dune-xt-la.git
...
...
This diff is collapsed.
Click to expand it.
dune/xt/grid/functors/boundary-detector.hh
+
16
−
0
View file @
cf70396c
...
...
@@ -53,6 +53,15 @@ public:
{
}
BoundaryDetectorFunctor
(
const
BoundaryDetectorFunctor
&
other
)
:
Propagator
(
*
this
)
,
boundary_info_
(
other
.
boundary_info_
)
,
boundary_type_
(
other
.
boundary_type_
)
,
found_
(
other
.
found_
)
,
res_mutex_
()
{
}
virtual
void
prepare
()
override
final
{
found_
=
0
;
...
...
@@ -93,10 +102,17 @@ protected:
found_
=
res
;
}
void
add_to_result
(
size_t
res
)
{
std
::
lock_guard
<
std
::
mutex
>
{
res_mutex_
};
found_
+=
res
;
}
private
:
const
BoundaryInfo
<
IntersectionType
>&
boundary_info_
;
const
std
::
shared_ptr
<
BoundaryType
>
boundary_type_
;
size_t
found_
;
std
::
mutex
res_mutex_
;
};
// class BoundaryDetectorFunctor
...
...
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