Commit 63a423e0 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Changed the greetings message of the stand-alone FOF code.

parent 0a8d34b7
......@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
#endif
/* Welcome to SWIFT, you made the right choice */
if (myrank == 0) greetings();
if (myrank == 0) greetings(/*fof=*/0);
int with_aff = 0;
int dry_run = 0;
......
......@@ -135,7 +135,7 @@ int main(int argc, char *argv[]) {
#endif
/* Welcome to SWIFT, you made the right choice */
if (myrank == 0) greetings();
if (myrank == 0) greetings(/*fof=*/1);
int with_aff = 0;
int dump_tasks = 0;
......
......@@ -411,16 +411,33 @@ const char *allocator_version(void) {
/**
* @brief Prints a greeting message to the standard output containing code
* version and revision number
*
* This was constructed using the 'figlet' tool and the 'slant' font. The
* lower-bar of the f is then lengthened.
*
* @param fof Is this for the FOF greeting?
*/
void greetings(void) {
printf(" Welcome to the cosmological hydrodynamical code\n");
printf(" ______ _________________\n");
printf(" / ___/ | / / _/ ___/_ __/\n");
printf(" \\__ \\| | /| / // // /_ / / \n");
printf(" ___/ /| |/ |/ // // __/ / / \n");
printf(" /____/ |__/|__/___/_/ /_/ \n");
printf(" SPH With Inter-dependent Fine-grained Tasking\n\n");
void greetings(int fof) {
if (!fof) {
printf(" Welcome to the cosmological hydrodynamical code\n");
printf(" ______ _________________\n");
printf(" / ___/ | / / _/ ___/_ __/\n");
printf(" \\__ \\| | /| / // // /_ / / \n");
printf(" ___/ /| |/ |/ // // __/ / / \n");
printf(" /____/ |__/|__/___/_/ /_/ \n");
printf(" SPH With Inter-dependent Fine-grained Tasking\n\n");
} else {
printf(" Welcome to the particle group finding tool\n");
printf(" ______ __________________ __________ ______\n");
printf(" / ___/ | / / _/ ____/_ __/ / ____/ __ \\/ ____/\n");
printf(" \\__ \\| | /| / // // /__ / /_____/ /__ / / / / /__ \n");
printf(" ___/ /| |/ |/ // // ___/ / /_____/ ___// /_/ / ___/ \n");
printf("/____/ |__/|__/___/_/ /_/ /_/ \\____/_/ \n");
printf(
" SPH With Inter-dependent Fine-grained Tasking - "
"Friend-of-Friends\n\n");
}
printf(" Version : %s\n", package_version());
printf(" Revision: %s, Branch: %s, Date: %s\n", git_revision(), git_branch(),
......
......@@ -38,6 +38,6 @@ const char* fftw3_version(void);
const char* libgsl_version(void);
const char* thread_barrier_version(void);
const char* allocator_version(void);
void greetings(void);
void greetings(int fof);
#endif /* SWIFT_VERSION_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment