Changeset a3a0c5c in sasmodels


Ignore:
Timestamp:
Jul 26, 2016 9:18:16 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:
56547a8
Parents:
2f5c6d4
Message:

improve comments

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_iq.c

    ra4280bd ra3a0c5c  
    243243      // Note: weight==0 must always be excluded 
    244244      if (weight0 > cutoff) { 
    245         // spherical correction has some nasty effects when theta is +90 or -90 
    246         // where it becomes zero. 
     245        // spherical correction is set at a minimum of 1e-6, otherwise there 
     246        // would be problems looking at models with theta=90. 
    247247        const double weight = weight0 * spherical_correction; 
    248248        pd_norm += weight * CALL_VOLUME(local_values); 
  • sasmodels/kernel_iq.cl

    ra4280bd ra3a0c5c  
    236236      // Note: weight==0 must always be excluded 
    237237      if (weight0 > cutoff) { 
    238         // spherical correction has some nasty effects when theta is +90 or -90 
    239         // where it becomes zero. 
     238        // spherical correction is set at a minimum of 1e-6, otherwise there 
     239        // would be problems looking at models with theta=90. 
    240240        const double weight = weight0 * spherical_correction; 
    241241        pd_norm += weight * CALL_VOLUME(local_values); 
Note: See TracChangeset for help on using the changeset viewer.