Changeset 2de9a5e in sasmodels for Kernel-Lamellar.cpp
- Timestamp:
- Jul 11, 2014 2:47:47 PM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Kernel-Lamellar.cpp
r8a20be5 r2de9a5e 1 #ifndef real2 # define real float3 #endif4 1 5 2 __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, constint length)3 const real scale, const real sub, const int length) 7 4 { 8 5 int i = get_global_id(0); … … 12 9 real pi = 4.0*atan(1.0); 13 10 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 ; 16 12 } 17 13 }
Note: See TracChangeset
for help on using the changeset viewer.