Changeset acfb094 in sasmodels


Ignore:
Timestamp:
Mar 5, 2017 4:36:04 PM (3 years ago)
Author:
butler
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3a45c2c, f4b36fa
Parents:
bb73096
Message:

scale intensity returned from rpa.c code to be close to correct
(currently using 1e-24). However th exact power of 10 will depend on
the units of Li (the scattering lengths) that are assumed in the
computation (we are now telling users it is in fm but clearly the code
is assuming something else — need to verify with rpa authors. Once done
this should complete work on #593. The documentation could use a lot of
TLC but that is a different ticket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/rpa.c

    rbb73096 racfb094  
    317317  Intg=Lad*Lad*S11+Lbd*Lbd*S22+Lcd*Lcd*S33+2.0*Lad*Lbd*S12+2.0*Lbd*Lcd*S23+2.0*Lad*Lcd*S13; 
    318318 
     319  //rescale for units of Lij^2 (in 10e-12 m^2 to m^2 ?) 
     320  Intg *= 1.0e-24;     
     321 
    319322  return Intg; 
    320323 
Note: See TracChangeset for help on using the changeset viewer.