Changeset 4962519 in sasmodels for sasmodels/models/hayter_msa.c


Ignore:
Timestamp:
Oct 14, 2016 4:49:58 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
14838a3
Parents:
a5b6997
Message:

use square and cube instead of pow()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hayter_msa.c

    r3a48772 r4962519  
    4848        Kappa=sqrt(2*Beta*IonSt/Perm);     //Kappa calc from Ionic strength 
    4949                                                                           //   Kappa=2/SIdiam                                  // Use to compare with HP paper 
    50         gMSAWave[5]=Beta*charge*charge/(M_PI*Perm*SIdiam*pow((2.0+Kappa*SIdiam),2)); 
     50        gMSAWave[5]=Beta*charge*charge/(M_PI*Perm*SIdiam*square(2.0+Kappa*SIdiam)); 
    5151         
    5252        //         Finally set up dimensionless parameters  
Note: See TracChangeset for help on using the changeset viewer.