Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
d681bb27
Commit
d681bb27
authored
Jun 20, 2021
by
Martin Schneider
Browse files
[discretisation] Implement function to get name of discretisation method
parent
b7ea71f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/method.hh
View file @
d681bb27
...
...
@@ -38,6 +38,24 @@ namespace Dumux {
none
,
box
,
cctpfa
,
ccmpfa
,
staggered
,
fem
};
/**
* \brief The name of the discretization method
* \ingroup Discretization
*/
std
::
string
discretizationMethodToString
(
DiscretizationMethod
discMethod
)
{
switch
(
discMethod
)
{
case
DiscretizationMethod
::
none
:
return
"None"
;
case
DiscretizationMethod
::
box
:
return
"Box"
;
case
DiscretizationMethod
::
cctpfa
:
return
"CCTpfa"
;
case
DiscretizationMethod
::
ccmpfa
:
return
"CCMpfa"
;
case
DiscretizationMethod
::
staggered
:
return
"Staggered"
;
case
DiscretizationMethod
::
fem
:
return
"Fem"
;
default:
return
"Invalid"
;
// should never be reached
}
}
}
// end namespace Dumux
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment