Skip to content
Snippets Groups Projects
Commit b5e001e4 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment