Changeset 3223

Show
Ignore:
Timestamp:
12/14/11 14:59:28 (5 months ago)
Author:
erkn
Message:

3rd time lucky: Perfect crystal now works for any hkl

added support for arbitrary hkls. Still only single material diamond
structures, though.
Can now handle hits from below and backwards.
Fix to detector out data print routine to allow values closely spaced.
There was an implicit hard limit at 4 digits precision.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcxtrace-1.0/xlib/samples/Perfect_crystal.comp

    r3222 r3223  
    238238        int quadrant; 
    239239        Thetain=fabs(atan(ky/kz)); 
    240         /* for a start, just define the value of atomic form factors for Si(111) at E = 8.04778keV */ 
    241240        double d=cbrt(V)/(sqrt(h*h+k*k+l*l));/*this is valid only for cubic structures*/ 
    242241        f00 = prms.Z;