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
b5e001e4
Commit
b5e001e4
authored
6 years ago
by
Dennis Gläser
Committed by
Timo Koch
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cc][elemsol] add missing free function for construction with privars
parent
4c6d30d0
No related branches found
No related tags found
1 merge request
!892
[pm][ff] Improve indices, move into model traits, [pm] free volume variables from type tag
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/discretization/cellcentered/elementsolution.hh
+14
-0
14 additions, 0 deletions
dumux/discretization/cellcentered/elementsolution.hh
with
14 additions
and
0 deletions
dumux/discretization/cellcentered/elementsolution.hh
+
14
−
0
View file @
b5e001e4
...
...
@@ -145,6 +145,20 @@ auto elementSolution(PrimaryVariables&& priVars)
return
CCElementSolution
<
FVElementGeometry
,
PrimaryVariables
>
(
std
::
move
(
priVars
));
}
/*!
* \ingroup CCDiscretization
* \brief Make an element solution for cell-centered schemes
* \note This is e.g. used to contruct an element solution at Dirichlet boundaries
*/
template
<
class
FVElementGeometry
,
class
PrimaryVariables
>
auto
elementSolution
(
const
PrimaryVariables
&
priVars
)
->
std
::
enable_if_t
<
FVElementGeometry
::
FVGridGeometry
::
discMethod
==
DiscretizationMethod
::
cctpfa
||
FVElementGeometry
::
FVGridGeometry
::
discMethod
==
DiscretizationMethod
::
ccmpfa
,
CCElementSolution
<
FVElementGeometry
,
PrimaryVariables
>>
{
return
CCElementSolution
<
FVElementGeometry
,
PrimaryVariables
>
(
priVars
);
}
}
// end namespace Dumux
#endif
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