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
d056f683
Commit
d056f683
authored
9 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[assembler.wrapper] add LocalVolumeTwoFormWrapper
Replaces LocalVolumeMatrixAssemblerWrapper using the new interfaces.
parent
9baaa3f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gdt/assembler/wrapper.hh
+44
-0
44 additions, 0 deletions
dune/gdt/assembler/wrapper.hh
with
44 additions
and
0 deletions
dune/gdt/assembler/wrapper.hh
+
44
−
0
View file @
d056f683
...
@@ -83,6 +83,50 @@ private:
...
@@ -83,6 +83,50 @@ private:
};
// class ConstraintsWrapper
};
// class ConstraintsWrapper
template
<
class
AssemblerType
,
class
LocalTwoFormType
,
class
MatrixType
>
class
LocalVolumeTwoFormWrapper
:
public
Stuff
::
Grid
::
internal
::
Codim0Object
<
typename
AssemblerType
::
GridViewType
>
{
public:
typedef
typename
AssemblerType
::
TestSpaceType
TestSpaceType
;
typedef
typename
AssemblerType
::
AnsatzSpaceType
AnsatzSpaceType
;
typedef
typename
AssemblerType
::
GridViewType
GridViewType
;
typedef
typename
AssemblerType
::
EntityType
EntityType
;
LocalVolumeTwoFormWrapper
(
const
DS
::
PerThreadValue
<
const
TestSpaceType
>&
test_space
,
const
DS
::
PerThreadValue
<
const
AnsatzSpaceType
>&
ansatz_space
,
const
Stuff
::
Grid
::
ApplyOn
::
WhichEntity
<
GridViewType
>*
where
,
const
LocalTwoFormType
&
local_twoform
,
MatrixType
&
matrix
)
:
test_space_
(
test_space
)
,
ansatz_space_
(
ansatz_space
)
,
where_
(
where
)
,
local_twoform_
(
local_twoform
)
,
matrix_
(
matrix
)
,
local_assembler_
(
local_twoform_
)
{
}
virtual
~
LocalVolumeTwoFormWrapper
()
=
default
;
virtual
bool
apply_on
(
const
GridViewType
&
gv
,
const
EntityType
&
entity
)
const
override
final
{
return
where_
->
apply_on
(
gv
,
entity
);
}
virtual
void
apply_local
(
const
EntityType
&
entity
)
override
final
{
local_assembler_
.
assemble
(
*
test_space_
,
*
ansatz_space_
,
entity
,
matrix_
);
}
private
:
const
DS
::
PerThreadValue
<
const
TestSpaceType
>&
test_space_
;
const
DS
::
PerThreadValue
<
const
AnsatzSpaceType
>&
ansatz_space_
;
const
std
::
unique_ptr
<
const
Stuff
::
Grid
::
ApplyOn
::
WhichEntity
<
GridViewType
>>
where_
;
const
LocalTwoFormType
&
local_twoform_
;
MatrixType
&
matrix_
;
const
LocalVolumeTwoFormAssembler
<
LocalTwoFormType
>
local_assembler_
;
};
// class LocalVolumeTwoFormWrapper
template
<
class
AssemblerType
,
class
LocalVolumeMatrixAssembler
,
class
MatrixType
>
template
<
class
AssemblerType
,
class
LocalVolumeMatrixAssembler
,
class
MatrixType
>
class
LocalVolumeMatrixAssemblerWrapper
class
LocalVolumeMatrixAssemblerWrapper
:
public
Stuff
::
Grid
::
internal
::
Codim0Object
<
typename
AssemblerType
::
GridViewType
>
,
:
public
Stuff
::
Grid
::
internal
::
Codim0Object
<
typename
AssemblerType
::
GridViewType
>
,
...
...
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