Changeset 2901 for branches/mcstas-1.x/lib/optics/Pol_guide_vmirror.comp
- Timestamp:
- 07/14/10 15:12:20 (23 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/mcstas-1.x/lib/optics/Pol_guide_vmirror.comp
r1660 r2901 77 77 SHARE 78 78 %{ 79 #include <assert.h> 79 /* #include <assert.h> - debugging use only */ 80 80 %include "pol-lib" 81 81 %include "ref-lib" … … 341 341 rUpFunc(fabs(Q), rUpParPtr, &Rup); 342 342 rDownFunc(fabs(Q), rDownParPtr, &Rdown); 343 assert(Rup>=0 && Rup<=1 && Rdown>=0 && Rdown<=1);343 /* assert(Rup>=0 && Rup<=1 && Rdown>=0 && Rdown<=1); */ 344 344 345 345 GetMonoPolFNFM(Rup, Rdown, &FN, &FM); 346 346 GetMonoPolRefProb(FN, FM, sy, &refWeight); 347 assert(refWeight>=0 && refWeight<=1); // check that refWeight is meaningfull347 /* assert(refWeight>=0 && refWeight<=1); // check that refWeight is meaningfull */ 348 348 349 349 if (rand01()<refWeight) { … … 358 358 } 359 359 360 assert(sx*sx+sy*sy+sz*sz<=1); // check that polarisation is meaningfull360 /* assert(sx*sx+sy*sy+sz*sz<=1); // check that polarisation is meaningfull */ 361 361 } 362 362
