10#ifndef TEUCHOS_BEHAVIOR_HPP 
   11#define TEUCHOS_BEHAVIOR_HPP 
   13#include "Teuchos_Behavior.hpp" 
   14#include "Teuchos_EnvVariables.hpp" 
   19constexpr const std::string_view FENCE_TIMERS = 
"TEUCHOS_FENCE_TIMERS";
 
   21constexpr bool fenceTimersDefault() {
 
   22#ifdef HAVE_TEUCHOS_TIMER_KOKKOS_FENCE 
   30bool Behavior::fenceTimers() {
 
   31  constexpr bool defaultValue = Teuchos::fenceTimersDefault();
 
   33  static bool value_ = defaultValue;
 
   34  static bool initialized_ = 
false;
 
Standard test and throw macros.
 
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...
 
T idempotentlyGetEnvironmentVariable(T &value, bool &initialized, const std::string_view environmentVariableName, const T defaultValue)
Read a variable from the environment. Example usage: