Branch data Line data Source code
1 : : // ***************************************************************************** 2 : : /*! 3 : : \file src/Main/WalkerConfig.cpp 4 : : \copyright 2012-2015 J. Bakosi, 5 : : 2016-2018 Los Alamos National Security, LLC., 6 : : 2019-2021 Triad National Security, LLC. 7 : : All rights reserved. See the LICENSE file for details. 8 : : \brief Walker configuration imported from cmake 9 : : \details Walker configuration inported from cmake. 10 : : \see src/CMakeListst.txt 11 : : */ 12 : : // ***************************************************************************** 13 : : 14 : : #include <string> 15 : : 16 : : #include "WalkerConfig.hpp" 17 : : 18 : : namespace tk { 19 : : 20 : : #define UNITTEST_EXECUTABLE "unittest" 21 : : #define RNGTEST_EXECUTABLE "rngtest" 22 : : #define WALKER_EXECUTABLE "walker" 23 : : 24 : : #define WALKER_VERSION "1.0" 25 : : #define COPYRIGHT "" 26 : : #define MPI_COMPILER "/usr/bin/mpicxx" 27 : : #define COMPILER "/usr/lib/ccache/c++" 28 : : #define BUILD_HOSTNAME "sprout" 29 : : #define BUILD_TYPE "debug" 30 : : #define BUILD_DATE "Wed 21 Sep 2022 05:58:19 PM IST" 31 : : #define REGRESSION_DIR "/home/jbakosi/code/walker/tests/regression" 32 : : 33 : : // Accessor definitions as strings of configuration values imported from cmake 34 : : 35 [ + - ]: 5018 : std::string unittest_executable() { return UNITTEST_EXECUTABLE; } 36 [ + - ]: 536 : std::string rngtest_executable() { return RNGTEST_EXECUTABLE; } 37 [ + - ]: 7692 : std::string walker_executable() { return WALKER_EXECUTABLE; } 38 : : 39 [ + - ]: 196 : std::string walker_version() { return WALKER_VERSION; } 40 [ - - ]: 0 : std::string copyright() { return COPYRIGHT; } 41 [ + - ]: 196 : std::string mpi_compiler() { return MPI_COMPILER; } 42 [ + - ]: 196 : std::string compiler() { return COMPILER; } 43 [ + - ]: 196 : std::string build_hostname() { return BUILD_HOSTNAME; } 44 [ + - ]: 196 : std::string build_type() { return BUILD_TYPE; } 45 [ + - ]: 196 : std::string build_date() { return BUILD_DATE; } 46 [ - - ]: 0 : std::string regression_dir() { return REGRESSION_DIR; } 47 : : 48 : : } // tk::