Changeset 5917637 in sasview for sansmodels/src
- Timestamp:
- Jan 13, 2013 11:22:55 AM (12 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 32aba6a
- Parents:
- 3657667
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/c_gen/sld2i.cpp
r3657667 r5917637 118 118 } 119 119 } 120 //Let's multiply pixel(atomic) volume here 121 ephase = rcmult(vol_pix[j], ephase); 120 122 //up_up 121 123 if (inspin > 0.0 && outspin > 0.0){ 122 124 comp_sld = cassign(b_sld.uu, 0.0); 123 125 temp_fi = cplx_mult(comp_sld, ephase); 124 temp_fi = rcmult(vol_pix[j],temp_fi);125 126 sumj_uu = cplx_add(sumj_uu, temp_fi); 126 127 } … … 129 130 comp_sld = cassign(b_sld.dd, 0.0); 130 131 temp_fi = cplx_mult(comp_sld, ephase); 131 temp_fi = rcmult(vol_pix[j],temp_fi);132 132 sumj_dd = cplx_add(sumj_dd, temp_fi); 133 133 } … … 136 136 comp_sld = cassign(b_sld.re_ud, b_sld.im_ud); 137 137 temp_fi = cplx_mult(comp_sld, ephase); 138 temp_fi = rcmult(vol_pix[j],temp_fi);139 138 sumj_ud = cplx_add(sumj_ud, temp_fi); 140 139 } … … 143 142 comp_sld = cassign(b_sld.re_du, b_sld.im_du); 144 143 temp_fi = cplx_mult(comp_sld, ephase); 145 temp_fi = rcmult(vol_pix[j],temp_fi);146 144 sumj_du = cplx_add(sumj_du, temp_fi); 147 145 }
Note: See TracChangeset
for help on using the changeset viewer.