- Timestamp:
- Aug 8, 2014 4:29:10 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:
- 4001d6e
- Parents:
- ae7d639
- Location:
- Kernel
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Kernel/Kernel-Cylinder_f.cpp
r1726b21 ra953943 85 85 const real lv = loops[2*(li+Nradius)]; 86 86 const real lw = loops[2*(li+Nradius)+1]; 87 vol += rw*lw*rv*rv*lv*Ntheta*Nphi;88 norm_vol += rw*lw*Ntheta*Nphi;89 87 for (int thi=0; thi < Ntheta; thi++) { 90 88 const real thv = loops[2*(thi+Nradius+Nlength)]; … … 100 98 ret += f(qxi, qyi, sub, rv, lv, weight, thv, phv); 101 99 norm += weight; 100 vol += rw*lw*rv*rv*lv; 101 norm_vol += rw*lw; 102 102 } 103 103 } … … 105 105 } 106 106 } 107 if (Ntheta>1) norm = norm/(M_PI/2);107 //if (Ntheta>1) norm = norm/(M_PI/2); 108 108 if (vol != REAL(0.0) && norm_vol != REAL(0.0)) { 109 109 ret *= norm_vol/vol; -
Kernel/Kernel-Ellipse_f.cpp
rae7d639 ra953943 73 73 const real rbv = loops[2*(bi+Nradius_a)]; 74 74 const real rbw = loops[2*(bi+Nradius_a)+1]; 75 vol += raw*rbw*rav*rbv*rbv*Ntheta*Nphi;76 norm_vol += raw*rbw*Ntheta*Nphi;77 75 for (int thi=0; thi < Ntheta; thi++) { 78 76 const real thv = loops[2*(thi+Nradius_a+Nradius_b)]; … … 88 86 ret += f(qxi, qyi, sub, rav, rbv, weight, thv, phv); 89 87 norm += weight; 88 vol += raw*rbw*rav*rbv*rbv; 89 norm_vol += raw*rbw; 90 90 } 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.