Alsvinn  0.5.3
The fast FVM simulator with UQ support
Classes | Namespaces | Functions
numflux_util.hpp File Reference
#include <array>
#include <type_traits>
#include "alsfvm/types.hpp"

Go to the source code of this file.

Classes

class  alsfvm::numflux::has_stencil< T >
 SFINAE test, see http://stackoverflow.com/a/257382. More...
 

Namespaces

 alsfvm
 Various utility functions to implement the tecno flux.
 
 alsfvm::numflux
 

Functions

template<class NumericalFluxType >
__device__ __host__ auto alsfvm::numflux::getStencil (NumericalFluxType) -> typename std::enable_if< has_stencil< NumericalFluxType >::value, decltype(NumericalFluxType::stencil())>::type
 Gets the stencil for numerical fluxes that have a stencil defined. More...
 
template<class NumericalFluxType >
__device__ __host__ std::enable_if< !has_stencil< NumericalFluxType >::value, ivec2 >::type alsfvm::numflux::getStencil (NumericalFluxType)
 
template<class Flux , class Equation , size_t direction>
__device__ __host__ real alsfvm::numflux::computeFluxForStencil (const Equation &eq, ivec2 indices, typename Equation::ConstViews &left, typename Equation::ConstViews &right, typename Equation::ConservedVariables &out)
 
template<class Flux , class Equation , size_t direction>
__device__ __host__ real alsfvm::numflux::computeFluxForStencil (const Equation &eq, ivec4 indices, typename Equation::ConstViews &left, typename Equation::ConstViews &right, typename Equation::ConservedVariables &out)
 
template<class Flux , class Equation , size_t direction>
__device__ __host__ real alsfvm::numflux::computeFluxForStencil (const Equation &eq, ivec6 indices, typename Equation::ConstViews &left, typename Equation::ConstViews &right, typename Equation::ConservedVariables &out)