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
81d456d7
Commit
81d456d7
authored
10 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[...block] updated grid layer usage
parent
2d591434
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/playground/mapper/block.hh
+1
-1
1 addition, 1 deletion
dune/gdt/playground/mapper/block.hh
dune/gdt/playground/spaces/block.hh
+8
-2
8 additions, 2 deletions
dune/gdt/playground/spaces/block.hh
with
9 additions
and
3 deletions
dune/gdt/playground/mapper/block.hh
+
1
−
1
View file @
81d456d7
...
...
@@ -105,7 +105,7 @@ private:
private
:
static
size_t
find_block_of_
(
const
MsGridType
&
ms_grid
,
const
Comdim0EntityType
&
entity
)
{
const
auto
global_entity_index
=
ms_grid
.
globalGridView
()
->
indexSet
().
index
(
entity
);
const
auto
global_entity_index
=
ms_grid
.
globalGridView
()
.
indexSet
().
index
(
entity
);
const
auto
result
=
ms_grid
.
entityToSubdomainMap
()
->
find
(
global_entity_index
);
#ifndef NDEBUG
if
(
result
==
ms_grid
.
entityToSubdomainMap
()
->
end
())
...
...
This diff is collapsed.
Click to expand it.
dune/gdt/playground/spaces/block.hh
+
8
−
2
View file @
81d456d7
...
...
@@ -58,6 +58,10 @@ public:
}
// namespace internal
/**
* \todo This can be implemented easier by now. Since all local spaces hold a copy of their local grid view it should
* be enough to hold a copy of the global grid view in this space (if the ms_grid is not needed elsewhere)
*/
template
<
class
LocalSpaceImp
>
class
Block
:
public
SpaceInterface
<
internal
::
BlockTraits
<
LocalSpaceImp
>>
{
...
...
@@ -81,6 +85,7 @@ public:
Block
(
const
std
::
shared_ptr
<
const
MsGridType
>&
ms_grid
,
const
std
::
vector
<
std
::
shared_ptr
<
const
LocalSpaceType
>>&
local_spaces
)
:
ms_grid_
(
ms_grid
)
,
grid_view_
(
ms_grid_
->
globalGridView
())
,
local_spaces_
(
local_spaces
)
,
mapper_
(
std
::
make_shared
<
MapperType
>
(
ms_grid_
,
local_spaces_
))
{
...
...
@@ -114,7 +119,7 @@ public:
const
GridViewType
&
grid_view
()
const
{
return
ms_
grid_
->
globalGridV
iew
()
;
return
grid_
v
iew
_
;
}
const
BackendType
&
backend
()
const
...
...
@@ -156,7 +161,7 @@ private:
template
<
class
EntityType
>
size_t
find_block_of_
(
const
EntityType
&
entity
)
const
{
const
auto
global_entity_index
=
ms_grid_
->
globalGridView
()
->
indexSet
().
index
(
entity
);
const
auto
global_entity_index
=
ms_grid_
->
globalGridView
()
.
indexSet
().
index
(
entity
);
const
auto
result
=
ms_grid_
->
entityToSubdomainMap
()
->
find
(
global_entity_index
);
#ifndef NDEBUG
if
(
result
==
ms_grid_
->
entityToSubdomainMap
()
->
end
())
...
...
@@ -179,6 +184,7 @@ private:
}
// ... find_block_of_(...)
const
std
::
shared_ptr
<
const
MsGridType
>
ms_grid_
;
const
GridViewType
grid_view_
;
const
std
::
vector
<
std
::
shared_ptr
<
const
LocalSpaceType
>>
local_spaces_
;
const
std
::
shared_ptr
<
const
MapperType
>
mapper_
;
};
// class Block
...
...
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