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
d9534e25
Commit
d9534e25
authored
6 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[operators.oswald-interpolation] drop free apply... function
parent
ba6aee4f
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
dune/gdt/operators/oswald-interpolation.hh
+3
-27
3 additions, 27 deletions
dune/gdt/operators/oswald-interpolation.hh
with
3 additions
and
27 deletions
dune/gdt/operators/oswald-interpolation.hh
+
3
−
27
View file @
d9534e25
...
...
@@ -59,7 +59,7 @@ public:
/**
* \param boundary_info To determine the Dirichlet boundary DoFs on which to set the range to zero.
*/
OswaldInterpolationOperator
(
AssemblyGridViewType
assembly_grid_view
,
OswaldInterpolationOperator
(
const
AssemblyGridViewType
&
assembly_grid_view
,
const
SourceSpaceType
&
src_spc
,
const
RangeSpaceType
&
rng_spc
,
const
XT
::
Grid
::
BoundaryInfo
<
I
>&
boundary_info
)
...
...
@@ -79,7 +79,7 @@ public:
/**
* Does not set any boundary DoFs to zero.
*/
OswaldInterpolationOperator
(
AssemblyGridViewType
assembly_grid_view
,
OswaldInterpolationOperator
(
const
AssemblyGridViewType
&
assembly_grid_view
,
const
SourceSpaceType
&
src_spc
,
const
RangeSpaceType
&
rng_spc
)
:
assembly_grid_view_
(
assembly_grid_view
)
...
...
@@ -194,7 +194,7 @@ public:
}
// ... apply(...)
private
:
const
AssemblyGridViewType
assembly_grid_view_
;
const
AssemblyGridViewType
&
assembly_grid_view_
;
const
SourceSpaceType
&
source_space_
;
const
RangeSpaceType
&
range_space_
;
const
XT
::
Common
::
ConstStorageProvider
<
XT
::
Grid
::
BoundaryInfo
<
I
>>
boundary_info_
;
...
...
@@ -217,30 +217,6 @@ OswaldInterpolationOperator<MatrixType, AssemblyGridView, dim, dim_cols, SGV, RG
}
template
<
class
AssemblyGridView
,
class
V
,
class
SGV
,
size_t
dim
,
size_t
dim_cols
,
class
RGV
>
DiscreteFunction
<
V
,
RGV
,
dim
,
dim_cols
>
apply_oswald_interpolation
(
const
AssemblyGridView
&
assembly_grid_view
,
const
DiscreteFunction
<
V
,
SGV
,
dim
,
dim_cols
>&
source
,
const
SpaceInterface
<
RGV
,
dim
,
dim_cols
>&
range_space
,
const
XT
::
Grid
::
BoundaryInfo
<
XT
::
Grid
::
extract_intersection_t
<
AssemblyGridView
>>&
boundary_info
)
{
using
M
=
typename
XT
::
LA
::
Container
<
typename
V
::
ScalarType
,
V
::
sparse_matrix_type
>::
MatrixType
;
auto
op
=
make_oswald_interpolation_operator
<
M
>
(
assembly_grid_view
,
source
.
space
(),
range_space
,
boundary_info
);
op
.
assemble
(
/*parallel=*/
true
);
return
op
.
apply
(
source
);
}
template
<
class
V
,
class
GV
,
size_t
dim
,
size_t
dim_cols
>
DiscreteFunction
<
V
,
GV
,
dim
,
dim_cols
>
apply_oswald_interpolation
(
const
DiscreteFunction
<
V
,
GV
,
dim
,
dim_cols
>&
source
,
const
SpaceInterface
<
GV
,
dim
,
dim_cols
>&
range_space
,
const
XT
::
Grid
::
BoundaryInfo
<
XT
::
Grid
::
extract_intersection_t
<
GV
>>&
boundary_info
)
{
return
apply_oswald_interpolation
(
source
.
space
().
grid_view
(),
source
,
range_space
,
boundary_info
);
}
}
// namespace GDT
}
// namespace Dune
...
...
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