Changeset 2964 for branches

Show
Ignore:
Timestamp:
10/07/10 16:41:52 (20 months ago)
Author:
pkwi
Message:

BUGFIX: For working properly in multi-mono configs, the comp needs to restore the neutron if scattering did not occur.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/mcstas-1.x/lib/optics/Monochromator_pol.comp

    r2901 r2964  
    181181      SCATTER; 
    182182    } /* End MC choice to reflect or transmit neutron */ 
    183   } /* End intersect the crystal */ 
     183  } else { /* End intersect the crystal */ 
     184    RESTORE_NEUTRON(INDEX_CURRENT_COMP, x, y, z, vx, vy, vz, t, sx, sy, sz, p); 
     185  } 
    184186   
    185187  %}