![]() |
Documentation 6b54b78464
|
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. | |
Header file for collecting common macros, definitions and type configurations.
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/.
| #define FORCEINLINE inline |
| #define NEVERINLINE inline |
| #define PRAGMIZE | ( | X | ) | _Pragma(#X) |
| #define SU2_CUDA_HOST_DEVICE |
| #define SU2_IGNORE_WARNING | ( | WARNING | ) |
| #define SU2_RESTORE_WARNING |
| using passivedouble = double |
| using su2conditional_t = typename su2conditional<B, T, F>::type |
| using su2double = passivedouble |
| using su2enable_if = typename std::enable_if<condition, bool>::type |
| using su2int = int32_t |
| using su2mixedfloat = passivedouble |
| using su2uint = uint32_t |
|
inline |
Static cast "In" to "Out", in debug builds a dynamic cast is used.