Changeset 823 for sans/XOP_Dev


Ignore:
Timestamp:
Jul 20, 2011 9:37:16 AM (11 years ago)
Author:
srkline
Message:

changed 2-yukawa S(Q) calculation to return S(q)=1000 if the calculation fails, to be very obvious that the calculation failed. This change matches the Igof code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/XOP_Dev/SANSAnalysis/XOP/StructureFactor.c

    r756 r823  
    264264        } else { 
    265265                for (i = 0; i < npnts; i++) { 
    266                         sq[i] = 1; 
     266                        sq[i] = 1000;           // return a really bogus value, as Yun suggests 
    267267                } 
    268268        } 
     
    357357        } else { 
    358358                for (i = 0; i < npnts; i++) { 
    359                         sq[i] = 1; 
     359                        sq[i] = 1000;           // return a really bogus value, as Yun suggests 
    360360                } 
    361361        } 
Note: See TracChangeset for help on using the changeset viewer.