Skip to content
Snippets Groups Projects
Commit d9a4d443 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Improved the greeting message to display more information and be visually appealing

Former-commit-id: c3c0a6a05a30c8c24d5ea6057d4216cc7b09c798
parent ea657f5e
No related branches found
No related tags found
No related merge requests found
...@@ -594,7 +594,8 @@ int main ( int argc , char *argv[] ) { ...@@ -594,7 +594,8 @@ int main ( int argc , char *argv[] ) {
/* Greeting message */ /* Greeting message */
if ( myrank == 0 ) if ( myrank == 0 )
message( "This is %s\n", package_description() ); greetings( );
/* Init the space. */ /* Init the space. */
bzero( &s , sizeof(struct space) ); bzero( &s , sizeof(struct space) );
......
...@@ -22,8 +22,10 @@ ...@@ -22,8 +22,10 @@
#include <stdio.h> #include <stdio.h>
/* This object's header. */ /* This object's header. */
#include "error.h"
#include "version.h" #include "version.h"
/** /**
* @brief Return the source code git revision * @brief Return the source code git revision
* *
...@@ -56,3 +58,20 @@ const char *package_description(void) { ...@@ -56,3 +58,20 @@ const char *package_description(void) {
} }
return buf; return buf;
} }
void greetings(void) {
printf( " Welcome to the cosmological code\n" );
printf( " ______ __________________\n" );
printf( " / ___/ | / / _/ ____/_ __/\n" );
printf( " \\__ \\| | /| / // // /_ / / \n" );
printf( " ___/ /| |/ |/ // // __/ / / \n" );
printf( " /____/ |__/|__/___/_/ /_/ \n" );
printf( " SPH With Inter-dependent Fine-grained Tasking\n\n");
printf( " Version : %s\n", package_version() );
printf( " Revision: %s\n", git_revision() );
printf( " Webpage : www.swiftsim.com\n\n" );
}
...@@ -31,5 +31,6 @@ ...@@ -31,5 +31,6 @@
const char* package_description( void ); const char* package_description( void );
const char* package_version(void); const char* package_version(void);
const char* git_revision(void); const char* git_revision(void);
void greetings(void);
#endif /* SWIFT_VERSION_H */ #endif /* SWIFT_VERSION_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment