Show
Ignore:
Timestamp:
05/21/07 12:12:52 (20 months ago)
Author:
rporter
Message:

merge changes from porter branch. These are all iso refactoring changes. Test suite has zero botches.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/cdspec.cpp

    r1078 r1142  
    463463        { 
    464464                /* this is exp(-tau) */ 
     465                cont = (float*)MALLOC( sizeof(float)*(size_t)rfield.nupper ); 
     466                /* need to free the vector once done */ 
     467                lgFREE = true; 
    465468                for( j=0; j<nEnergy; ++j) 
    466469                { 
    467470                        /* This is the TOTAL attentuation in both the continuum and lines.   
    468471                         * Jon Miller discovered that the line attentuation was missing in 07.02 */ 
    469                         ReturnedSpectrum[j] = opac.ExpmTau[j]*rfield.trans_coef[j]; 
     472                        cont[j] = opac.ExpmTau[j]*rfield.trans_coef[j]; 
    470473                } 
    471474                return; 
     
    478481        } 
    479482 
    480         /* this is array index used in Spec_cont */ 
    481         iplo = 0; 
    482         iphi = 0; 
    483483        /* now generate the continua */ 
    484484        for( ncell = 0; ncell < nEnergy; ++ncell )