Show
Ignore:
Timestamp:
05/14/08 04:02:19 (8 months ago)
Author:
gary
Message:

bugfix - labels for molecules were not produced in punch molecules command since they do not exist when commands are parsed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/punch_do.cpp

    r1960 r2059  
    24902490                                if( strcmp(chTime,"LAST") != 0 ) 
    24912491                                { 
     2492                                        static bool lgMustPrintHeader = true; 
     2493                                        if( lgMustPrintHeader ) 
     2494                                        { 
     2495                                                lgMustPrintHeader = false; 
     2496                                                fprintf( punch.ipPnunit[ipPun],  
     2497                                                        "#depth\tAV(point)\tAV(extend)\tCO diss rate\tC recom rate"); 
     2498 
     2499                                                for(i=0; i<N_H_MOLEC; ++i ) 
     2500                                                { 
     2501                                                        fprintf( punch.ipPnunit[ipPun], "\t%s", hmi.chLab[i] ); 
     2502                                                } 
     2503                                                for(i=0; i<mole.num_comole_calc; ++i ) 
     2504                                                { 
     2505                                                        fprintf( punch.ipPnunit[ipPun], "\t%s",COmole[i]->label ); 
     2506                                                } 
     2507                                                fprintf( punch.ipPnunit[ipPun], "\n"); 
     2508                                        } 
    24922509                                        /* molecules, especially for PDR, first give radius */ 
    24932510                                        fprintf( punch.ipPnunit[ipPun], "%.5e\t" , radius.depth_mid_zone );