Changeset 0278e3f in sasmodels for sasmodels/kernel_template.c


Ignore:
Timestamp:
Apr 6, 2016 7:22:46 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c, e6408d0
Parents:
c4e7a5f
Message:

remove opencl compiler warnings; maybe fix build server breakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    rc4e7a5f r0278e3f  
    226226#ifdef IQXY_OPEN_LOOPS 
    227227    double ret=0.0, norm=0.0; 
    228     #ifdef VOLUME_PARAMETERS 
    229     double vol=0.0, norm_vol=0.0; 
    230     #endif 
    231228    IQXY_OPEN_LOOPS 
    232229    //for (int radius_i=0; radius_i < Nradius; radius_i++) { 
     
    243240        // For cos(theta) fixed at 90, we effectively multiply top and bottom 
    244241        // by 1e-6, so the effect cancels. 
    245         const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1e-6); 
     242        const double spherical_correction = fmax(fabs(cos(M_PI_180*theta)), 1.e-6); 
    246243        weight *= spherical_correction; 
    247244      #endif 
Note: See TracChangeset for help on using the changeset viewer.