Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
Namespaces | Macros | Functions
TensorOps.h File Reference
#include <vector>
#include <array>
#include <limits>
#include <stk_util/environment/ReportHandler.hpp>
#include <Kokkos_Core.hpp>
#include <SimdInterface.h>

Go to the source code of this file.

Namespaces

 sierra
 
 sierra::nalu
 

Macros

#define POINTER_RESTRICT   __restrict__
 

Functions

constexpr double sierra::nalu::tiny_positive_value ()
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION ScalarType sierra::nalu::vecnorm_sq2 (const ScalarType *x)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION ScalarType sierra::nalu::vecnorm_sq3 (const ScalarType *x)
 
template<typename ScalarType >
ScalarType sierra::nalu::ddot (const ScalarType *u, const ScalarType *v, int n)
 
template<typename ScalarType >
void sierra::nalu::cross3 (const ScalarType *u, const ScalarType *v, ScalarType *cross)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION ScalarType sierra::nalu::determinant22 (const ScalarType *mat)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION ScalarType sierra::nalu::determinant33 (const ScalarType *mat)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::adjugate_matrix33 (const ScalarType jact[3][3], ScalarType adjJac[3][3])
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::invert_matrix33 (const ScalarType A[3][3], ScalarType Ainv[3][3])
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::invert_matrix33 (const ScalarType *POINTER_RESTRICT A, ScalarType *POINTER_RESTRICT Ainv)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::solve22 (const ScalarType *POINTER_RESTRICT A, const ScalarType *POINTER_RESTRICT b, ScalarType *POINTER_RESTRICT x)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::solve33 (const ScalarType *POINTER_RESTRICT A, const ScalarType *POINTER_RESTRICT b, ScalarType *POINTER_RESTRICT x)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::matvec22 (const ScalarType *A, const ScalarType *x, ScalarType *b)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::mxm22 (const ScalarType *A, const ScalarType *B, ScalarType *C)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::mxm33 (const ScalarType *A, const ScalarType *B, ScalarType *C)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::matvec33 (const ScalarType *A, const ScalarType *x, ScalarType *b)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::transpose22 (const ScalarType *A, ScalarType *At)
 
template<typename ScalarType >
KOKKOS_FORCEINLINE_FUNCTION void sierra::nalu::transpose33 (const ScalarType *A, ScalarType *At)
 

Macro Definition Documentation

#define POINTER_RESTRICT   __restrict__