Commit 5c1a8866 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'feature/pnm-bflux-stringview' into 'master'

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

See merge request !2491
parents 32d202f2 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,
......
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