Changeset 1197

Show
Ignore:
Timestamp:
06/16/07 20:35:27 (1 year ago)
Author:
gary
Message:

prt_lines_continuum.cpp - bugfix - incident continuum near Lya and Hbeta were zero in the emergent continuum. there is actually no distinction between emergent and intrinsic incident continua. this fix sets both to the correct incident value

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/source/prt_lines_continuum.cpp

    r1127 r1197  
    229229        linadd(continuum.cn4861,4860,"Inci",'i', 
    230230                "incident continuum nu*f_nu at H-beta, at illuminated face of cloud "); 
     231        /* >>chng 07 jun 13, at this point nsum is the number of lines in the stack 
     232         * so nsum-1 is the entry created by the above call to linadd 
     233         * we want to set the emergent incident continuum to the intrinsic 
     234         * incident continuum - there are reports of the incident continuum  
     235         * striking the cloud and the emergent - incident distinction does 
     236         * not apply */ 
     237        if( LineSave.ipass > 0 ) 
     238        { 
     239                LineSv[LineSave.nsum-1].sumlin[1] = LineSv[LineSave.nsum-1].sumlin[0]; 
     240        } 
    231241 
    232242        continuum.cn1216 /= (float)radius.dVeff; 
    233243        linadd(continuum.cn1216,1215,"Inci",'i', 
    234244                "incident continuum nu*f_nu near Ly-alpha, at illuminated face of cloud"); 
     245        /* see comment concerning parallel code immediately above */ 
     246        if( LineSave.ipass > 0 ) 
     247        { 
     248                LineSv[LineSave.nsum-1].sumlin[1] = LineSv[LineSave.nsum-1].sumlin[0]; 
     249        } 
    235250 
    236251        continuum.cn1216 *= (float)radius.dVeff;