Changeset c3ccaec in sasmodels for sasmodels/models/core_multi_shell.c


Ignore:
Timestamp:
Feb 7, 2017 12:10:50 PM (7 years ago)
Author:
GitHub <noreply@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a90aa1c
Parents:
aa107ef (diff), fe8ff99 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (02/07/17 12:10:50)
git-committer:
GitHub <noreply@…> (02/07/17 12:10:50)
Message:

Merge branch 'master' into ticket-815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_multi_shell.c

    r21fbab1 rc3ccaec  
    33f_constant(double q, double r, double sld) 
    44{ 
    5   const double bes = sph_j1c(q * r); 
     5  const double bes = sas_3j1x_x(q * r); 
    66  const double vol = M_4PI_3 * cube(r); 
    77  return sld * vol * bes; 
     
    2929  f = 0.; 
    3030  for (int i=0; i<n; i++) { 
    31     f += M_4PI_3 * cube(r) * (sld[i] - last_sld) * sph_j1c(q*r); 
     31    f += M_4PI_3 * cube(r) * (sld[i] - last_sld) * sas_3j1x_x(q*r); 
    3232    last_sld = sld[i]; 
    3333    r += thickness[i]; 
    3434  } 
    35   f += M_4PI_3 * cube(r) * (solvent_sld - last_sld) * sph_j1c(q*r); 
     35  f += M_4PI_3 * cube(r) * (solvent_sld - last_sld) * sas_3j1x_x(q*r); 
    3636  return f * f * 1.0e-4; 
    3737} 
Note: See TracChangeset for help on using the changeset viewer.