Changeset aa8c6e0 in sasmodels for sasmodels/models/lib


Ignore:
Timestamp:
Oct 30, 2018 8:43:35 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
765d025, 23df833
Parents:
153f8f6 (diff), c6084f1 (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.
Message:

Merge branch 'master' into beta_approx

Location:
sasmodels/models/lib
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/core_shell.c

    r925ad6e r71b751d  
    77********************************************************************/ 
    88static 
    9 double core_shell_kernel(double q, 
     9double core_shell_fq(double q, 
    1010                         double radius, 
    1111                         double thickness, 
    1212                         double core_sld, 
    1313                         double shell_sld, 
    14                          double solvent_sld) { 
     14                         double solvent_sld) 
     15{ 
    1516    // Core first, then add in shell 
    1617    const double core_qr = q * radius; 
     
    2627    const double shell_volume = M_4PI_3 * cube(radius + thickness); 
    2728    f += shell_volume * shell_bes * shell_contrast; 
    28     return f * f * 1.0e-4; 
     29    return f; 
    2930} 
     31 
     32// Deprecated function: use core_shell_fq instead. 
     33static 
     34double core_shell_kernel(double q, 
     35                         double radius, 
     36                         double thickness, 
     37                         double core_sld, 
     38                         double shell_sld, 
     39                         double solvent_sld) 
     40{ 
     41    const double fq = core_shell_fq(q, radius, thickness, core_sld, shell_sld, solvent_sld); 
     42    return 1.0e-4 * fq*fq; 
     43} 
  • sasmodels/models/lib/gauss76.c

    r99b84ec r74e9b5f  
    1111 
    1212// Gaussians 
    13 constant double Gauss76Wt[76]={ 
     13constant double Gauss76Wt[76] = { 
    1414        .00126779163408536,             //0 
    1515        .00294910295364247, 
     
    9090}; 
    9191 
    92 constant double Gauss76Z[76]={ 
     92constant double Gauss76Z[76] = { 
    9393        -.999505948362153,              //0 
    9494        -.997397786355355, 
  • sasmodels/models/lib/polevl.c

    r447e9aa r74e9b5f  
    5151*/ 
    5252 
    53 double polevl( double x, constant double *coef, int N ); 
    54 double polevl( double x, constant double *coef, int N ) 
     53static 
     54double polevl( double x, pconstant double *coef, int N ) 
    5555{ 
    5656 
     
    7272 */ 
    7373 
    74 double p1evl( double x, constant double *coef, int N ); 
    75 double p1evl( double x, constant double *coef, int N ) 
     74static 
     75double p1evl( double x, pconstant double *coef, int N ) 
    7676{ 
    7777    int i=0; 
  • sasmodels/models/lib/sas_J1.c

    r5181ccc r74e9b5f  
    4242#if FLOAT_SIZE>4 
    4343//Cephes double pression function 
    44 double cephes_j1(double x); 
    4544 
    4645constant double RPJ1[8] = { 
     
    106105    0.0 }; 
    107106 
     107static 
    108108double cephes_j1(double x) 
    109109{ 
     
    155155#else 
    156156//Single precission version of cephes 
    157 float cephes_j1f(float x); 
    158  
    159157constant float JPJ1[8] = { 
    160158    -4.878788132172128E-009, 
     
    190188    }; 
    191189 
     190static 
    192191float cephes_j1f(float xx) 
    193192{ 
     
    240239 
    241240//Finally J1c function that equals 2*J1(x)/x 
    242 double sas_2J1x_x(double x); 
     241static 
    243242double sas_2J1x_x(double x) 
    244243{ 
  • sasmodels/models/lib/sphere_form.c

    r925ad6e r01c8d9e  
    1313    return 1.0e-4*square(contrast * fq); 
    1414} 
     15 
Note: See TracChangeset for help on using the changeset viewer.