Skip to content
Snippets Groups Projects
Select Git revision
  • 30ce8eb928873f9fd71cd41b3e4db3d0392af685
  • tutorial-1 default protected
  • main
3 results

clang.md

Blame
  • Forked from mactavish96 / ALP4-Tutorials
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    enum_model.cc 324 B
    #include <dune/common/exceptions.hh>
    
    template <> struct StringToEnum<Config::model> {
      static Config::model convert(std::string const &s) {
        if (s == "Laursen")
          return Config::Laursen;
    
        if (s == "Exponential")
          return Config::Exponential;
    
        DUNE_THROW(Dune::Exception, "failed to parse enum");
      }
    };