Show
Ignore:
Timestamp:
03/27/08 12:40:50 (8 months ago)
Author:
peter
Message:

source/service.cpp
source/punch_fits.cpp
source/init_coreload.cpp
source/grains_mie.cpp
source/assert_results.cpp
source/parse_punch.cpp
source/optimize_phymir.cpp
source/version.h
source/parse_commands.cpp
source/prt_final.cpp
source/grid_do.cpp
source/parse_print.cpp
source/cddrive.cpp
source/prt_comment.cpp
tsuite/programs/mpi/mpi.cpp

  • Bug-fix for PR59 - cdVersion, cdDate could cause segfault.
  • Start preparing for the change of the release numbering scheme for the next release.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/grid_do.cpp

    r1771 r1891  
    167167        if( strcmp(optimize.chOptRtn,"XSPE") == 0 ) 
    168168        { 
    169                 fprintf( ioQQQ, "                                                           Grid  Driver\n" ); 
     169                fprintf( ioQQQ, "                                                          Grid  Driver\n" ); 
    170170        } 
    171171        else 
     
    173173                fprintf( ioQQQ, "                                                      Optimization  Driver\n" ); 
    174174        } 
    175         fprintf( ioQQQ, "                                                        Cloudy %s\n\n",version.chVersion); 
    176         fprintf( ioQQQ, "                       **************************************%8.87s*************************************\n", version.chDate); 
    177         fprintf( ioQQQ, "                       *                                                                                 *\n"); 
    178  
     175        int indent = (122 - strlen(version::Inst().chVersion))/2; 
     176        fprintf( ioQQQ, "%*cCloudy %s\n\n",indent,' ',version::Inst().chVersion); 
     177        fprintf( ioQQQ, "%23c**************************************%7.7s**************************************\n", ' ', version::Inst().chDate ); 
     178        fprintf( ioQQQ, "%23c*%81c*\n", ' ', ' ' ); 
    179179 
    180180        /* now echo initial input quantities with flag for vary */ 
     
    195195                } 
    196196 
    197                 fprintf( ioQQQ, "               %7.7s * ",chNote); 
    198                 j = 0; 
    199                 /* print actual command */ 
    200                 while( input.chCardSav[i][j] !='\0' ) 
    201                 { 
    202                         fprintf( ioQQQ, "%c", input.chCardSav[i][j] ); 
    203                         ++j; 
    204                 } 
    205                 /* flush out rest of space then * */ 
    206                 while( j<80 ) 
    207                 { 
    208                         fprintf( ioQQQ, "%c", ' ' ); 
    209                         ++j; 
    210                 } 
    211                 /* end the line */ 
    212                 fprintf( ioQQQ, "*\n" ); 
    213         } 
    214         fprintf( ioQQQ, "                       *                                                                                 *\n                       ***********************************************************************************\n\n\n" ); 
     197                fprintf( ioQQQ, "%22.7s * %-80s*\n", chNote, input.chCardSav[i] ); 
     198        } 
     199        fprintf( ioQQQ, "%23c*%81c*\n", ' ', ' ' ); 
     200        fprintf( ioQQQ, "%23c***********************************************************************************\n\n\n", ' ' ); 
    215201 
    216202        /* option to trace logical flow within this sub */