Changeset 2901 for branches/mcstas-1.x/lib/optics/Pol_mirror.comp
- Timestamp:
- 07/14/10 15:12:20 (23 months ago)
- Files:
-
- 1 modified
-
branches/mcstas-1.x/lib/optics/Pol_mirror.comp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcstas-1.x/lib/optics/Pol_mirror.comp
r1657 r2901 88 88 SHARE 89 89 %{ 90 #include <assert.h> 90 /* #include <assert.h> - debugging use only */ 91 91 %include "pol-lib" 92 92 %include "ref-lib" … … 148 148 // calculate scattering vector magnitude 149 149 Q = fabs(2*vx*V2K); 150 assert(Q>=0);150 /* assert(Q>=0); */ 151 151 152 152 // calculate reflection probability … … 163 163 164 164 // check that refWeight is meaningfull 165 assert(refWeight>=0 && refWeight<=1);165 /* assert(refWeight>=0 && refWeight<=1); */ 166 166 167 167 // find out if neutrons is reflected or transmitted … … 191 191 } 192 192 193 assert(reflect==0 || reflect==1);193 /* assert(reflect==0 || reflect==1); */ 194 194 195 195 // set outgoing velocity and polarisation … … 207 207 } 208 208 209 if(isPolarising)209 /*if(isPolarising) 210 210 assert(sx*sx+sy*sy+sz*sz<=1); // check that polarisation is meaningfull 211 211 */ 212 212 213 SCATTER; 213 214 } /* End intersect the mirror */
