Show
Ignore:
Timestamp:
07/14/10 15:12:20 (23 months ago)
Author:
pkwi
Message:

The use of assert causes problems in some installations - and should be used for debugging purposes only.

Files:
1 modified

Legend:

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

    r1660 r2901  
    7777SHARE 
    7878%{ 
    79 #include <assert.h> 
     79/* #include <assert.h> - debugging use only */ 
    8080%include "pol-lib" 
    8181%include "ref-lib" 
     
    341341      rUpFunc(fabs(Q), rUpParPtr, &Rup); 
    342342      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); */ 
    344344 
    345345      GetMonoPolFNFM(Rup, Rdown, &FN, &FM); 
    346346      GetMonoPolRefProb(FN, FM, sy, &refWeight); 
    347       assert(refWeight>=0 && refWeight<=1); // check that refWeight is meaningfull 
     347      /* assert(refWeight>=0 && refWeight<=1); // check that refWeight is meaningfull */ 
    348348       
    349349      if (rand01()<refWeight) { 
     
    358358      } 
    359359 
    360       assert(sx*sx+sy*sy+sz*sz<=1); // check that polarisation is meaningfull 
     360      /* assert(sx*sx+sy*sy+sz*sz<=1); // check that polarisation is meaningfull */ 
    361361    } 
    362362