Changeset 2963 for branches

Show
Ignore:
Timestamp:
10/05/10 12:00:01 (20 months ago)
Author:
pkwi
Message:

Gaussian flag did not recenter distribution around Lambda0. Seems to have been fixed on the trunk already.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcstas-1.x/lib/sources/Source_simple.comp

    r2168 r2963  
    2020* 
    2121* %D 
    22 * The routine is a circular neutron source, which aims at a square target 
     22* The routine is a circular or rectangular neutron source, which aims at a square target 
    2323* centered at the beam (in order to improve MC-acceptance rate).  The angular 
    2424* divergence is then given by the dimensions of the target. 
     
    138138     Lambda=Lambda0+dLambda*randpm1(); 
    139139   } else { 
    140      Lambda=randnorm()*dLambda; 
     140     Lambda=Lambda0+randnorm()*dLambda; 
    141141   } 
    142142   v = K2V*(2*PI/Lambda);