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
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
Container registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Jaap
dune-solvers
Commits
c031b077
"src/multi-body-problem-data/grid/cuboidgeometry.cc" did not exist on "0145e006fcba03676e1970e2413b3171c04a59b2"
Commit
c031b077
authored
2 years ago
by
Patrick Jaap
Browse files
Options
Downloads
Patches
Plain Diff
Fix energynormtest
parent
23cec135
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#54025
canceled
2 years ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/solvers/test/energynormtest.cc
+6
-0
6 additions, 0 deletions
dune/solvers/test/energynormtest.cc
with
6 additions
and
0 deletions
dune/solvers/test/energynormtest.cc
+
6
−
0
View file @
c031b077
...
@@ -145,6 +145,12 @@ struct CustomMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...> {
...
@@ -145,6 +145,12 @@ struct CustomMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...> {
template
<
class
...
Args
>
template
<
class
...
Args
>
struct
CustomMultiTypeBlockMatrix
:
public
Dune
::
MultiTypeBlockMatrix
<
Args
...
>
{
struct
CustomMultiTypeBlockMatrix
:
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
// HACK for istl compatibility
static
constexpr
size_t
size
(){
return
sizeof
...(
Args
);
}
template
<
class
K
,
typename
=
std
::
enable_if_t
<
Dune
::
IsNumber
<
K
>
::
value
>>
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
void
operator
*=
(
K
v
)
{
Dune
::
Hybrid
::
forEach
(
*
this
,
[
v
](
auto
&
b
)
{
b
*=
v
;
});
}
// allow multiplication by scalar
};
};
...
...
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