diff options
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 6 | ||||
-rw-r--r-- | Source/Utils/CMakeLists.txt | 2 | ||||
-rw-r--r-- | Source/Utils/Logo/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Source/Utils/Logo/GetLogo.H | 19 | ||||
-rw-r--r-- | Source/Utils/Logo/GetLogo.cpp | 15 | ||||
-rw-r--r-- | Source/Utils/Logo/Make.package | 3 | ||||
-rw-r--r-- | Source/Utils/Make.package | 2 |
7 files changed, 50 insertions, 1 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 812f0bf01..6f9178af7 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -21,6 +21,7 @@ #include "Filter/BilinearFilter.H" #include "Filter/NCIGodfreyFilter.H" #include "Particles/MultiParticleContainer.H" +#include "Utils/Logo/GetLogo.H" #include "Utils/MPIInitHelpers.H" #include "Utils/TextMsg.H" #include "Utils/WarpXAlgorithmSelection.H" @@ -359,11 +360,14 @@ WarpX::InitData () WARPX_PROFILE("WarpX::InitData()"); utils::warpx_check_mpi_thread_level(); - Print() << "WarpX (" << WarpX::Version() << ")\n"; #ifdef WARPX_QED Print() << "PICSAR (" << WarpX::PicsarVersion() << ")\n"; #endif + Print() << "WarpX (" << WarpX::Version() << ")\n"; + + Print() << utils::logo::get_logo(); + if (restart_chkfile.empty()) { ComputeDt(); diff --git a/Source/Utils/CMakeLists.txt b/Source/Utils/CMakeLists.txt index b2754cdaf..9253f3d0d 100644 --- a/Source/Utils/CMakeLists.txt +++ b/Source/Utils/CMakeLists.txt @@ -13,3 +13,5 @@ target_sources(WarpX WarpXUtil.cpp WarpXVersion.cpp ) + +add_subdirectory(Logo) diff --git a/Source/Utils/Logo/CMakeLists.txt b/Source/Utils/Logo/CMakeLists.txt new file mode 100644 index 000000000..62b5371ee --- /dev/null +++ b/Source/Utils/Logo/CMakeLists.txt @@ -0,0 +1,4 @@ +target_sources(WarpX + PRIVATE + GetLogo.cpp +) diff --git a/Source/Utils/Logo/GetLogo.H b/Source/Utils/Logo/GetLogo.H new file mode 100644 index 000000000..70a3e38ff --- /dev/null +++ b/Source/Utils/Logo/GetLogo.H @@ -0,0 +1,19 @@ +#ifndef WARPX_GET_LOGO_H_ +#define WARPX_GET_LOGO_H_ + +#include <string> + +namespace utils +{ + namespace logo + { + /** + * \brief provides an ASCII art logo for WarpX + * + * \return a string containing an ASCII art logo + */ + std::string get_logo () noexcept; + } +} + +#endif diff --git a/Source/Utils/Logo/GetLogo.cpp b/Source/Utils/Logo/GetLogo.cpp new file mode 100644 index 000000000..c515ceac1 --- /dev/null +++ b/Source/Utils/Logo/GetLogo.cpp @@ -0,0 +1,15 @@ +#include "GetLogo.H" + +std::string utils::logo::get_logo () noexcept +{ + return +R"( + __ __ __ __ + \ \ / /_ _ _ __ _ __\ \/ / + \ \ /\ / / _` | '__| '_ \\ / + \ V V / (_| | | | |_) / \ + \_/\_/ \__,_|_| | .__/_/\_\ + |_| + +)"; +} diff --git a/Source/Utils/Logo/Make.package b/Source/Utils/Logo/Make.package new file mode 100644 index 000000000..2aa69ae46 --- /dev/null +++ b/Source/Utils/Logo/Make.package @@ -0,0 +1,3 @@ +CEXE_sources += GetLogo.cpp + +VPATH_LOCATIONS += $(WARPX_HOME)/Source/Utils/Logo diff --git a/Source/Utils/Make.package b/Source/Utils/Make.package index c37715083..b20a1abe2 100644 --- a/Source/Utils/Make.package +++ b/Source/Utils/Make.package @@ -11,4 +11,6 @@ CEXE_sources += MPIInitHelpers.cpp CEXE_sources += RelativeCellPosition.cpp CEXE_sources += ParticleUtils.cpp +include $(WARPX_HOME)/Source/Utils/Logo/Make.package + VPATH_LOCATIONS += $(WARPX_HOME)/Source/Utils |