version 3.8
primaryvariableswitchadapter.hh File Reference

An adapter for the Newton to manage models with primary variable switch. More...

#include <memory>
#include <dune/common/std/type_traits.hh>
#include <dumux/common/parameters.hh>

Go to the source code of this file.

Classes

class  Dumux::PrimaryVariableSwitchAdapter< Variables, isValid >
 An adapter for the Newton to manage models with primary variable switch. More...
 
class  Dumux::PrimaryVariableSwitchAdapter< Variables, false >
 An empty adapter for the Newton for models without primary variable switch. More...
 

Namespaces

namespace  Dumux
 
namespace  Dumux::Detail
 Distance implementation details.
 

Typedefs

template<class Variables >
using Dumux::Detail::DetectPVSwitch = typename Variables::VolumeVariables::PrimaryVariableSwitch
 helper aliases to extract a primary variable switch from the VolumeVariables (if defined, yields int otherwise) More...
 
template<class Variables >
using Dumux::Detail::PrimaryVariableSwitch = Dune::Std::detected_or_t< int, DetectPVSwitch, Variables >
 

Variables

template<class Variables >
constexpr bool Dumux::hasPriVarsSwitch = Dune::Std::is_detected<Detail::DetectPVSwitch, Variables>()
 Helper boolean to check if the given variables involve primary variable switching. More...
 
Include dependency graph for primaryvariableswitchadapter.hh: