Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!2491[pnm] Use string_view for string argument to boundary flux function
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment