Changeset 1726

Show
Ignore:
Timestamp:
01/01/08 04:31:10 (11 months ago)
Author:
peter
Message:

source/maincl.cpp:

Bug-fix - main() should also call cdEXIT so that punch files are closed.

source/cdinit.cpp:

Make sure there is no output after last print statement in main().

Location:
trunk/source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/cdinit.cpp

    r1716 r1726  
    243243/*cdEXIT the routine that should be called to exit cloudy */ 
    244244NORETURN void cdEXIT( 
    245                                          /* EXIT_FAILURE for failure, EXIT_SUCCESS for success */ 
    246                                          int iexit) 
     245        /* EXIT_FAILURE for failure, EXIT_SUCCESS for success */ 
     246        int iexit) 
    247247{ 
    248248        enum {DEBUG_LOC=false}; 
     
    261261        if( lgMPI ) 
    262262        { 
    263                 fprintf(ioQQQ," MPI_Finalize called.\n"); 
    264263#               ifdef MPI_ENABLED 
    265264                MPI_Finalize(); 
  • trunk/source/maincl.cpp

    r1689 r1726  
    329329                /* cdDrive returned 1 if something bad happened, and 0 if everything is ok.  We will 
    330330                 * return 0 if everything is ok, and 1 if something bad happened.*/ 
    331                 return(lgBadExit); 
     331                cdEXIT(lgBadExit); 
    332332        } 
    333333        catch( bad_alloc )