Changeset 2100

Show
Ignore:
Timestamp:
06/05/08 04:18:39 (3 months ago)
Author:
gary
Message:

parse_punch.cpp - add extra check on punch helium so that it does not pick up ionization rate punch option

punch_do.cpp - change f to e format for punch line list

Location:
trunk/source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/parse_punch.cpp

    r2059 r2100  
    13621362        } 
    13631363 
    1364         else if( nMatch("HELI",chCard) ) 
    1365         { 
    1366                 /* punch helium & helium-like iso sequence */ 
    1367                 /* punch helium line wavelengths */ 
     1364        else if( nMatch("HELI",chCard) &&!( nMatch("IONI",chCard))) 
     1365        { 
     1366                /* punch helium & helium-like iso sequence, but not punch helium ionization rate 
     1367                 * punch helium line wavelengths */ 
    13681368                if( nMatch("LINE",chCard) && nMatch("WAVE",chCard) ) 
    13691369                { 
  • trunk/source/punch_do.cpp

    r2059 r2100  
    24392439                                                        static double SaveQuantity = 0; 
    24402440                                                        if( is_odd(j) ) 
    2441                                                                 fprintf( punch.ipPnunit[ipPun], "\t%.3f" ,  
     2441                                                                fprintf( punch.ipPnunit[ipPun], "\t%.3e" ,  
    24422442                                                                        SaveQuantity / SDIV( PrtQuantity ) ); 
    24432443                                                        else 
     
    24462446                                                else 
    24472447                                                { 
    2448                                                         fprintf( punch.ipPnunit[ipPun], "\t%.3f" , PrtQuantity ); 
     2448                                                        fprintf( punch.ipPnunit[ipPun], "\t%.3e" , PrtQuantity ); 
    24492449                                                } 
    24502450                                        }