Commit adc567f5 authored by Timo Koch's avatar Timo Koch
Browse files

[pnm] Use string_view for string argument to boundary flux function

parent ae9f7563
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <vector> #include <vector>
#include <type_traits> #include <type_traits>
#include <unordered_map> #include <unordered_map>
#include <string> #include <string_view>
#include <iostream> #include <iostream>
#include <dune/common/exceptions.hh> #include <dune/common/exceptions.hh>
...@@ -139,7 +139,7 @@ public: ...@@ -139,7 +139,7 @@ public:
* \param coord x, y or z coordinate at which bBoxMin or bBoxMax is evaluated * \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 * \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")) if (!(minMax == "min" || minMax == "max"))
DUNE_THROW(Dune::InvalidStateException, DUNE_THROW(Dune::InvalidStateException,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment