Skip to content
GitLab
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
adc567f5
Commit
adc567f5
authored
Mar 01, 2021
by
Timo Koch
Browse files
[pnm] Use string_view for string argument to boundary flux function
parent
ae9f7563
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/porenetwork/common/boundaryflux.hh
View file @
adc567f5
...
...
@@ -29,7 +29,7 @@
#include
<vector>
#include
<type_traits>
#include
<unordered_map>
#include
<string>
#include
<string
_view
>
#include
<iostream>
#include
<dune/common/exceptions.hh>
...
...
@@ -139,7 +139,7 @@ public:
* \param coord x, y or z coordinate at which bBoxMin or bBoxMax is evaluated
* \param verbose If set true, the fluxes at all individual SCVs are printed
*/
Result
getFlux
(
const
std
::
string
minMax
,
const
int
coord
,
const
bool
verbose
=
false
)
const
Result
getFlux
(
std
::
string
_view
minMax
,
const
int
coord
,
const
bool
verbose
=
false
)
const
{
if
(
!
(
minMax
==
"min"
||
minMax
==
"max"
))
DUNE_THROW
(
Dune
::
InvalidStateException
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment