Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dumux-repositories
dumux
Commits
77e2505f
Commit
77e2505f
authored
1 year ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[md][assemblerview] fix enable_if for isImplicit()
parent
772f99b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!3608
[experimental] Multistage assembler
Pipeline
#36118
passed
1 year ago
Stage: check-status
Stage: trigger dumux pipelines
+3
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/assemblerview.hh
+10
-1
10 additions, 1 deletion
dumux/multidomain/assemblerview.hh
with
10 additions
and
1 deletion
dumux/multidomain/assemblerview.hh
+
10
−
1
View file @
77e2505f
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
#ifndef DUMUX_MULTIDOMAIN_ASSEMBLER_VIEW_HH
#ifndef DUMUX_MULTIDOMAIN_ASSEMBLER_VIEW_HH
#define DUMUX_MULTIDOMAIN_ASSEMBLER_VIEW_HH
#define DUMUX_MULTIDOMAIN_ASSEMBLER_VIEW_HH
#include
<dune/common/std/type_traits.hh>
namespace
Dumux
{
namespace
Dumux
{
/*!
/*!
...
@@ -28,6 +30,12 @@ class MultiDomainAssemblerSubDomainView
...
@@ -28,6 +30,12 @@ class MultiDomainAssemblerSubDomainView
{
{
static
constexpr
Dune
::
index_constant
<
domainId
>
myId
{};
static
constexpr
Dune
::
index_constant
<
domainId
>
myId
{};
template
<
class
A
>
using
HasStaticIsImplicitCheck
=
decltype
(
A
::
isImplicit
());
template
<
class
A
>
static
constexpr
bool
hasStaticIsImplicit
=
Dune
::
Std
::
is_detected
<
HasStaticIsImplicitCheck
,
A
>::
value
;
public
:
public
:
using
CouplingManager
=
typename
MDAssembler
::
CouplingManager
;
using
CouplingManager
=
typename
MDAssembler
::
CouplingManager
;
using
SolutionVector
=
typename
MDAssembler
::
SolutionVector
;
using
SolutionVector
=
typename
MDAssembler
::
SolutionVector
;
...
@@ -55,9 +63,10 @@ public:
...
@@ -55,9 +63,10 @@ public:
const
auto
&
prevSol
()
const
{
return
assembler_
.
prevSol
();
}
const
auto
&
prevSol
()
const
{
return
assembler_
.
prevSol
();
}
bool
isStationaryProblem
()
const
{
return
assembler_
.
isStationaryProblem
();
}
bool
isStationaryProblem
()
const
{
return
assembler_
.
isStationaryProblem
();
}
template
<
class
A
=
MDAssembler
,
typename
std
::
enable_if_t
<
A
::
i
sImplicit
()
,
int
>
=
0
>
template
<
class
A
=
MDAssembler
,
typename
std
::
enable_if_t
<
hasStaticI
sImplicit
<
A
>
,
int
>
=
0
>
static
constexpr
bool
isImplicit
()
{
return
MDAssembler
::
isImplicit
();
}
static
constexpr
bool
isImplicit
()
{
return
MDAssembler
::
isImplicit
();
}
template
<
class
A
=
MDAssembler
,
typename
std
::
enable_if_t
<!
hasStaticIsImplicit
<
A
>,
int
>
=
0
>
bool
isImplicit
()
const
{
return
assembler_
.
isImplicit
();
}
bool
isImplicit
()
const
{
return
assembler_
.
isImplicit
();
}
private
:
private
:
...
...
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