Gromacs  2025-dev-20240910-a7e2421
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
gmx::anonymous_namespace{gpu_3dfft_heffte.cpp} Namespace Reference

Functions

bool boolFromEnvironmentOrDefault (const char *environmentVariableName, const bool defaultValue)
 Return either the boolean true/false given by environmentVariableName, or the defaultValue if the environment variable is not set. More...
 
heffte::reshape_algorithm reshapeAlgorithmFromEnvironmentOrDefault (const char *environmentVariableName, heffte::reshape_algorithm defaultValue)
 Return either the HeFFTe algorithm given by environmentVariableName, or the defaultValue if the environment variable is not set. More...
 

Function Documentation

bool gmx::anonymous_namespace{gpu_3dfft_heffte.cpp}::boolFromEnvironmentOrDefault ( const char *  environmentVariableName,
const bool  defaultValue 
)

Return either the boolean true/false given by environmentVariableName, or the defaultValue if the environment variable is not set.

Exceptions
InvalidInputErrorif the environment variable is set and is not an exact match for one of "true" or "false".
heffte::reshape_algorithm gmx::anonymous_namespace{gpu_3dfft_heffte.cpp}::reshapeAlgorithmFromEnvironmentOrDefault ( const char *  environmentVariableName,
heffte::reshape_algorithm  defaultValue 
)

Return either the HeFFTe algorithm given by environmentVariableName, or the defaultValue if the environment variable is not set.

Exceptions
InvalidInputErrorif the environment variable is set and is not an exact match for one of "alltoallv", "alltoall", "p2p_plined", or "p2p".