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/Monochromator_pol.comp

    r1641 r2901  
    8787DECLARE 
    8888%{ 
    89 #include <assert.h> 
     89/*#include <assert.h> - debugging only */ 
    9090 
    9191  double mos_rms; /* root-mean-square of mosaic, in radians */ 
     
    177177        printf("S_out: (%f, %f, %f)\n", sx, sy, sz); 
    178178       
    179       assert(sx*sx+sy*sy+sz*sz <= 1); 
     179      /* assert(sx*sx+sy*sy+sz*sz <= 1); */ 
    180180       
    181181      SCATTER;