Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
about.hpp
Go to the documentation of this file.
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Smith Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
14 #pragma once
15 
16 #include <string>
17 #include <utility>
18 
19 #include "mpi.h"
20 
21 namespace smith {
22 
28 std::string about();
29 
37 std::string gitSHA();
38 
44 void printRunInfo();
45 
53 std::string version(bool add_SHA = true);
54 
60 std::string compiler();
61 
67 std::string buildType();
68 
74 std::pair<int, int> getMPIInfo(MPI_Comm comm = MPI_COMM_WORLD);
75 
76 } // namespace smith
Accelerator functionality.
Definition: smith.cpp:36
std::string version(bool add_SHA)
Returns a string for the version of Smith.
Definition: about.cpp:214
std::string buildType()
Returns a string for the current CMake build type (e.g. Debug, Release)
Definition: about.cpp:228
std::pair< int, int > getMPIInfo(MPI_Comm comm)
Get MPI Info.
Definition: about.cpp:237
std::string compiler()
Returns a string for the current compiler name and version.
Definition: about.cpp:226
std::string about()
Returns a string about the configuration of Smith.
Definition: about.cpp:56
std::string gitSHA()
Returns a string for the Git SHA when the driver was built.
Definition: about.cpp:192
void printRunInfo()
Outputs basic run information to the screen.
Definition: about.cpp:194