3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Namespaces | Typedefs | Variables
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.

Description

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

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
 

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::GetPVSwitch = Dune::Std::detected_or< int, DetectPVSwitch, Variables >
 
template<class Variables >
using Dumux::Detail::PrimaryVariableSwitch = typename GetPVSwitch< Variables >::type
 

Variables

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