Branch data Line data Source code
1 : : // ***************************************************************************** 2 : : /*! 3 : : \file src/Main/QuinoaConfig.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 Quinoa configuration imported from cmake 9 : : \details Quinoa configuration inported from cmake. 10 : : \see src/CMakeListst.txt 11 : : */ 12 : : // ***************************************************************************** 13 : : 14 : : #include <string> 15 : : 16 : : #include "QuinoaConfig.hpp" 17 : : 18 : : namespace tk { 19 : : 20 : : #define UNITTEST_EXECUTABLE "unittest" 21 : : #define INCITER_EXECUTABLE "inciter" 22 : : #define RNGTEST_EXECUTABLE "rngtest" 23 : : #define MESHCONV_EXECUTABLE "meshconv" 24 : : #define WALKER_EXECUTABLE "walker" 25 : : #define FILECONV_EXECUTABLE "" 26 : : 27 : : #define QUINOA_VERSION "0.3 (C20072)" 28 : : #define COPYRIGHT "Copyright (c) 2012-2015, J. Bakosi\nCopyright (c) 2016-2018, Los Alamos National Security, LLC\nCopyright (c) 2019-2021, Triad National Security, LLC\nAll rights reserved. See --license for details." 29 : : #define LICENSE "Copyright (c) 2012-2015, J. Bakosi\nCopyright (c) 2016-2018, Los Alamos National Security, LLC\nCopyright (c) 2019-2021, Triad National Security, LLC\nAll rights reserved.\n\nThis program was produced under U.S. Government contract 89233218CNA000001 for\nLos Alamos National Laboratory (LANL), which is operated by Triad National\nSecurity, LLC for the U.S. Department of Energy/National Nuclear Security\nAdministration. All rights in the program are reserved by Triad National\nSecurity, LLC, and the U.S. Department of Energy/National Nuclear Security\nAdministration. The Government is granted for itself and others acting on its\nbehalf a nonexclusive, paid-up, irrevocable worldwide license in this material\nto reproduce, prepare derivative works, distribute copies to the public,\nperform publicly and display publicly, and to permit others to do so.\n\nAdditionally, redistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\nlist of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\nthis list of conditions and the following disclaimer in the documentation and/or\nother materials provided with the distribution.\n\n3. Neither the name of Triad National Security, LLC, Los Alamos National\nLaboratory, LANL, the U.S. Government, nor the names of its contributors may be\nused to endorse or promote products derived from this software without specific\nprior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY TRIAD NATIONAL SECURITY, LLC AND CONTRIBUTORS \"AS\nIS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL TRIAD NATIONAL SECURITY, LLC OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\nGOODS OR SERVICES\\n LOSS OF USE, DATA, OR PROFITS\\n OR BUSINESS INTERRUPTION)\nHOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nFor third-party licenses, see https://quinoacomputing.org/licenses.html" 30 : : #define GIT_COMMIT "Quinoa_v0.3-957-gb4f0efae0" 31 : : #define MPI_COMPILER "/usr/bin/mpicxx" 32 : : #define COMPILER "/usr/lib/ccache/g++" 33 : : #define BUILD_HOSTNAME "lagrange" 34 : : #define BUILD_TYPE "DEBUG" 35 : : #define BUILD_DATE "Thu 11 Nov 2021 08:17:09 AM MST" 36 : : #define REGRESSION_DIR "/tmp/TeamCity-3/work/821a9fd6f64749d9/tests/regression" 37 : : 38 : : // Accessor definitions as strings of configuration values imported from cmake 39 : : 40 [ + - ]: 3324 : std::string unittest_executable() { return UNITTEST_EXECUTABLE; } 41 [ - - ]: 0 : std::string inciter_executable() { return INCITER_EXECUTABLE; } 42 [ - - ]: 0 : std::string rngtest_executable() { return RNGTEST_EXECUTABLE; } 43 [ - - ]: 0 : std::string meshconv_executable() { return MESHCONV_EXECUTABLE; } 44 [ - - ]: 0 : std::string walker_executable() { return WALKER_EXECUTABLE; } 45 [ - - ]: 0 : std::string fileconv_executable() { return FILECONV_EXECUTABLE; } 46 : : 47 [ + - ]: 1 : std::string quinoa_version() { return QUINOA_VERSION; } 48 [ + - ]: 1 : std::string git_commit() { return GIT_COMMIT; } 49 [ - - ]: 0 : std::string copyright() { return COPYRIGHT; } 50 [ - - ]: 0 : std::string license() { return LICENSE; } 51 [ + - ]: 1 : std::string mpi_compiler() { return MPI_COMPILER; } 52 [ + - ]: 1 : std::string compiler() { return COMPILER; } 53 [ + - ]: 1 : std::string build_hostname() { return BUILD_HOSTNAME; } 54 [ + - ]: 1 : std::string build_type() { return BUILD_TYPE; } 55 [ + - ]: 1 : std::string build_date() { return BUILD_DATE; } 56 [ + - ]: 22 : std::string regression_dir() { return REGRESSION_DIR; } 57 : : 58 : : } // tk::