Changeset a3a0c5c in sasmodels for sasmodels/kernel_iq.c


Ignore:
Timestamp:
Jul 26, 2016 7: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

File:
1 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); 
Note: See TracChangeset for help on using the changeset viewer.