From 9402a9d7ef0240dd3357ef334cfe94c0452846c6 Mon Sep 17 00:00:00 2001 From: knarf Date: Sat, 27 Jul 2013 16:01:04 +0000 Subject: Cactus currently prints 10 1 0101 ************************ 01 1010 10 The Cactus Code V4.0 1010 1101 011 www.cactuscode.org 1001 100101 ************************ 00010101 100011 (c) Copyright The Authors 0100 GNU Licensed. No Warranty 0101 Cactus version: 4.2.1 Note the first version, mentioned in the Banner (4.0) is wrong - it's hard-coded in the source. The attached patch uses CCTK_FullVersion() instead. Kudos to Steve to spot this. git-svn-id: http://svn.cactuscode.org/flesh/trunk@5035 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/main/Banner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/Banner.c b/src/main/Banner.c index 2581e583..a4c94d40 100644 --- a/src/main/Banner.c +++ b/src/main/Banner.c @@ -82,7 +82,7 @@ void CCTKi_CactusBanner (void) char buffer[DATALENGTH+1]; const char *banner = " 10 \n" " 1 0101 ************************ \n" - " 01 1010 10 The Cactus Code V4.0 \n" + " 01 1010 10 The Cactus Code V%s \n" " 1010 1101 011 www.cactuscode.org \n" " 1001 100101 ************************ \n" " 00010101 \n" @@ -92,7 +92,7 @@ void CCTKi_CactusBanner (void) puts (delimiter); - puts (banner); + printf (banner, CCTK_FullVersion ()); puts (delimiter); printf ("Cactus version: %s\n", CCTK_FullVersion ()); -- cgit v1.2.3