Changeset 1142 for trunk/source/cdspec.cpp
- Timestamp:
- 05/21/07 12:12:52 (20 months ago)
- Files:
-
- 1 modified
-
trunk/source/cdspec.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/cdspec.cpp
r1078 r1142 463 463 { 464 464 /* 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; 465 468 for( j=0; j<nEnergy; ++j) 466 469 { 467 470 /* This is the TOTAL attentuation in both the continuum and lines. 468 471 * 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]; 470 473 } 471 474 return; … … 478 481 } 479 482 480 /* this is array index used in Spec_cont */481 iplo = 0;482 iphi = 0;483 483 /* now generate the continua */ 484 484 for( ncell = 0; ncell < nEnergy; ++ncell )
