Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-solvers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
agnumpde
dune-solvers
Commits
64869d7a
There was a problem fetching the pipeline summary.
Commit
64869d7a
authored
Sep 23, 2017
by
maxka
Browse files
Options
Downloads
Patches
Plain Diff
Add scaling for custom MultiTypeBlockMatrix type.
parent
611784cb
Branches
Branches containing commit
No related tags found
1 merge request
!18
Feature/energynorm matrix provider
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/solvers/test/energynormtest.cc
+2
-0
2 additions, 0 deletions
dune/solvers/test/energynormtest.cc
with
2 additions
and
0 deletions
dune/solvers/test/energynormtest.cc
+
2
−
0
View file @
64869d7a
...
@@ -143,6 +143,8 @@ struct NestableMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...>
...
@@ -143,6 +143,8 @@ struct NestableMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...>
template
<
class
...
Args
>
template
<
class
...
Args
>
struct
NestableMultiTypeBlockMatrix
:
public
Dune
::
MultiTypeBlockMatrix
<
Args
...
>
{
struct
NestableMultiTypeBlockMatrix
:
public
Dune
::
MultiTypeBlockMatrix
<
Args
...
>
{
constexpr
static
size_t
blocklevel
=
1
;
// fake value needed for BCRSMatrix nesting
constexpr
static
size_t
blocklevel
=
1
;
// fake value needed for BCRSMatrix nesting
template
<
class
K
,
typename
=
std
::
enable_if_t
<
Dune
::
IsNumber
<
K
>
::
value
>>
void
operator
*=
(
K
v
)
{
Dune
::
Hybrid
::
forEach
(
*
this
,
[
v
](
auto
&
b
)
{
b
*=
v
;
});
}
// allow multiplication by scalar
};
};
// inject field traits for custom multi type block vector to be used by the norms
// inject field traits for custom multi type block vector to be used by the norms
...
...
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