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 MESHCONV_EXECUTABLE "meshconv" 23 : : 24 : : #define QUINOA_VERSION "1.0 (O4755)" 25 : : #define COPYRIGHT "Copyright (c) 2012-2015, J. Bakosi\nCopyright (c) 2016-2018, Los Alamos National Security, LLC\nCopyright (c) 2019-2024, Triad National Security, LLC\nAll rights reserved. See --license for details." 26 : : #define LICENSE "Copyright (c) 2012-2015, J. Bakosi\nCopyright (c) 2016-2018, Los Alamos National Security, LLC\nCopyright (c) 2019-2024, 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 the copyright holder nor the names of its contributors\nmay be used to endorse or promote products derived from this software without\nspecific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 THE COPYRIGHT HOLDERS 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" 27 : : #define GIT_COMMIT "-128-NOTFOUND" 28 : : #define MPI_COMPILER "/usr/bin/mpicxx" 29 : : #define COMPILER "/usr/bin/g++" 30 : : #define BUILD_HOSTNAME "lagrange" 31 : : #define BUILD_TYPE "RELEASE" 32 : : #define BUILD_DATE "Fri 22 Nov 2024 09:07:26 AM MST" 33 : : #define REGRESSION_DIR "/tmp/TeamCity-2/work/5ad443c8abe7fc0a/tests/regression" 34 : : 35 : : // Accessor definitions as strings of configuration values imported from cmake 36 : : 37 : 2604 : std::string unittest_executable() { return UNITTEST_EXECUTABLE; } 38 : 7817 : std::string inciter_executable() { return INCITER_EXECUTABLE; } 39 : 126 : std::string meshconv_executable() { return MESHCONV_EXECUTABLE; } 40 : : 41 : 0 : std::string quinoa_version() { return QUINOA_VERSION; } 42 : 208 : std::string git_commit() { return GIT_COMMIT; } 43 : 0 : std::string copyright() { return COPYRIGHT; } 44 : 0 : std::string license() { return LICENSE; } 45 : 208 : std::string mpi_compiler() { return MPI_COMPILER; } 46 : 208 : std::string compiler() { return COMPILER; } 47 : 208 : std::string build_hostname() { return BUILD_HOSTNAME; } 48 : 208 : std::string build_type() { return BUILD_TYPE; } 49 : 208 : std::string build_date() { return BUILD_DATE; } 50 : 22 : std::string regression_dir() { return REGRESSION_DIR; } 51 : : 52 : : } // tk::