Changeset 2de9a5e in sasmodels for Kernel-Lamellar.cpp


Ignore:
Timestamp:
Jul 11, 2014 2:47:47 PM (10 years ago)
Author:
HMP1 <helen.park@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
be5d7df
Parents:
8faffcd
Message:

Update for Aaron

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Kernel-Lamellar.cpp

    r8a20be5 r2de9a5e  
    1 #ifndef real 
    2 # define real float 
    3 #endif 
    41 
    52__kernel void LamellarKernel(__global const real *qx, global const real *qy, __global real *ret, const real bi_thick, 
    6  const real scale, const real sub, const real background, const int length) 
     3 const real scale, const real sub, const int length) 
    74{ 
    85    int i = get_global_id(0); 
     
    129        real pi = 4.0*atan(1.0); 
    1310        real Pq = 2.0*sub*(sub/q)/q*(1.0-cos(q*bi_thick)); 
    14         ret[i] = 2.0*pi*scale*Pq/(q*q)/bi_thick*1.0e8; 
    15         ret[i] += background; 
     11        ret[i] = 2.0*pi*scale*Pq/(q*q)/bi_thick*1.0e8 ; 
    1612    } 
    1713} 
Note: See TracChangeset for help on using the changeset viewer.