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_bender.comp

    r1669 r2901  
    109109SHARE 
    110110%{ 
    111 #include <assert.h> 
     111/* #include <assert.h> - debugging use only */ 
    112112%include "pol-lib" 
    113113%include "ref-lib" 
     
    439439     
    440440    // check that refWeight is meaningfull 
    441     assert(weight>=0 && weight<=1);  
     441    /* assert(weight>=0 && weight<=1); */ 
    442442 
    443443    if(isPolarising) 
     
    463463  const double lengthOfGuide = sin(length/radius)*radius;  
    464464  const double slitWidth = xw/nslits;  
    465   assert(lengthOfGuide>0); 
     465  /* assert(lengthOfGuide>0); */ 
    466466  double R = 0; /* radius of arc */ 
    467467  int nSlitsMax = nslits;