Changeset 2461

Show
Ignore:
Timestamp:
11/20/08 05:52:02 (7 weeks ago)
Author:
gary
Message:

punch_do.cpp - upgrade all print wavelength/energy statements to be at least .5e - some are higher precision - these were not degraded.

Location:
trunk/source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/nemala.txt

    r1906 r2461  
    11to use the Chianti and Leiden data base files uncomment Nemala_Start at  
    22atmdat_readin.cpp near line 1433 
     3 
     4the code will then read a list of species from species.ini in the data directory 
  • trunk/source/punch_do.cpp

    r2369 r2461  
    460460 
    461461                                                /* photon energy in appropriate energy or wavelength units */ 
    462                                                 fprintf( punch.ipPnunit[ipPun],"%.3e\t", AnuUnit(rfield.AnuOrg[j]) ); 
     462                                                fprintf( punch.ipPnunit[ipPun],"%.5e\t", AnuUnit(rfield.AnuOrg[j]) ); 
    463463                                                /* incident continuum */ 
    464464                                                fprintf( punch.ipPnunit[ipPun],"%.3e\t", flxin );  
     
    976976                                                 * going to be used by table read 
    977977                                                 * and we want good anu array for sanity check*/ 
    978                                                 fprintf( punch.ipPnunit[ipPun],"%.3e\t", AnuUnit(rfield.AnuOrg[j]) ); 
     978                                                fprintf( punch.ipPnunit[ipPun],"%.5e\t", AnuUnit(rfield.AnuOrg[j]) ); 
    979979                                                fprintf( punch.ipPnunit[ipPun],"%.3e\t", flxtrn); 
    980980                                                fprintf( punch.ipPnunit[ipPun],"%.3e\n", rfield.trans_coef_total[j] ); 
     
    25532553                                        { 
    25542554                                                fprintf( punch.ipPnunit[ipPun],  
    2555                                                         "%12.4e\t%.3e\t%12.4e\t%.3e\n",  
     2555                                                        "%13.5e\t%.3e\t%12.4e\t%.3e\n",  
    25562556                                                  AnuUnit(rfield.AnuOrg[j]),  
    25572557                                                  opac.TauAbsFace[j]+opac.TauScatFace[j],  
     
    28852885                                        { 
    28862886                                                fprintf( punch.ipPnunit[ipPun],  
    2887                                                         "%.4e\t%.4e\t%.4e\t%.4e\t%.4e\t%.4e\n",  
     2887                                                        "%.5e\t%.4e\t%.4e\t%.4e\t%.4e\t%.4e\n",  
    28882888                                                  AnuUnit(rfield.AnuOrg[j]), 
    28892889                                                  rfield.ConEmitLocal[nzone][j]/rfield.widflx[j],  
     
    35783578        { 
    35793579                /* photon energy in appropriate energy or wavelength units */ 
    3580                 fprintf( ioPUN,"%.3e\t", AnuUnit((realnum)(energy[j]+rfield.widflx[j+ipLo]/2.) ) ); 
     3580                fprintf( ioPUN,"%.5e\t", AnuUnit((realnum)(energy[j]+rfield.widflx[j+ipLo]/2.) ) ); 
    35813581                fprintf( ioPUN,"%.3e\t", cont_incid[j] ); 
    35823582                fprintf( ioPUN,"%.3e\t", cont_atten[j] );