Documentation 6b54b78464
Loading...
Searching...
No Matches
code_config.hpp File Reference

Header file for collecting common macros, definitions and type configurations. More...

#include <cstdint>
#include <type_traits>
#include <cmath>

Go to the source code of this file.

Classes

struct  su2conditional< B, T, F >
 
struct  su2conditional< false, T, F >
 

Macros

#define PRAGMIZE(X)   _Pragma(#X)
 
#define FORCEINLINE   inline
 
#define NEVERINLINE   inline
 
#define SU2_CUDA_HOST_DEVICE
 
#define SU2_IGNORE_WARNING(WARNING)
 
#define SU2_RESTORE_WARNING
 

Typedefs

template<bool condition>
using su2enable_if = typename std::enable_if< condition, bool >::type
 
template<bool B, class T , class F >
using su2conditional_t = typename su2conditional< B, T, F >::type
 
using su2uint = uint32_t
 
using su2int = int32_t
 
using passivedouble = double
 
using su2double = passivedouble
 
using su2mixedfloat = passivedouble
 

Functions

template<class Out , class In >
Out su2staticcast_p (In ptr)
 Static cast "In" to "Out", in debug builds a dynamic cast is used.
 

Detailed Description

Header file for collecting common macros, definitions and type configurations.

Author
T. Albring, P. Gomes, J. Blühdorn
Version
8.5.0 "Harrier"

SU2 Project Website: https://su2code.github.io

The SU2 Project is maintained by the SU2 Foundation (http://su2foundation.org)

Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)

SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.

Macro Definition Documentation

◆ FORCEINLINE

#define FORCEINLINE   inline

◆ NEVERINLINE

#define NEVERINLINE   inline

◆ PRAGMIZE

#define PRAGMIZE (   X)    _Pragma(#X)

◆ SU2_CUDA_HOST_DEVICE

#define SU2_CUDA_HOST_DEVICE

◆ SU2_IGNORE_WARNING

#define SU2_IGNORE_WARNING (   WARNING)

◆ SU2_RESTORE_WARNING

#define SU2_RESTORE_WARNING

Typedef Documentation

◆ passivedouble

using passivedouble = double

◆ su2conditional_t

template<bool B, class T , class F >
using su2conditional_t = typename su2conditional<B, T, F>::type

◆ su2double

◆ su2enable_if

template<bool condition>
using su2enable_if = typename std::enable_if<condition, bool>::type

◆ su2int

using su2int = int32_t

◆ su2mixedfloat

◆ su2uint

using su2uint = uint32_t

Function Documentation

◆ su2staticcast_p()

template<class Out , class In >
Out su2staticcast_p ( In  ptr)
inline

Static cast "In" to "Out", in debug builds a dynamic cast is used.