diff --git a/dumux/porenetwork/common/boundaryflux.hh b/dumux/porenetwork/common/boundaryflux.hh index b5e1687b6410db4f2ff0c6752d7729f9f7abf1ae..b1ff5a84dbbd579afc57fc1402b212d3d93f4793 100644 --- a/dumux/porenetwork/common/boundaryflux.hh +++ b/dumux/porenetwork/common/boundaryflux.hh @@ -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,