source: sasmodels/Kernel-Lamellar.cpp @ 79fcc40

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 79fcc40 was 496b252, checked in by HMP1 <helen.park@…>, 10 years ago

core shell cylinder is fixed; float converted to real so is interchangeable

  • Property mode set to 100644
File size: 388 bytes
RevLine 
[8a20be5]1
2__kernel void LamellarKernel(__global const real *qx, global const real *qy, __global real *ret, const real bi_thick,
[2de9a5e]3 const real scale, const real sub, const int length)
[5378e40]4{
5    int i = get_global_id(0);
6    if(i < length)
7    {
[8a20be5]8        real q = sqrt(qx[i]*qx[i]+qy[i]*qy[i]);
[496b252]9        ret[i] = 2.0*4.0*atan(1.0)*scale*2.0*sub*(sub/q)/q*(1.0-cos(q*bi_thick))/(q*q)/bi_thick*1.0e8 ;
[5378e40]10    }
11}
Note: See TracBrowser for help on using the repository browser.