Changeset 8b677ec in sasview for sansmodels/src/sans/models/c_models
- Timestamp:
- Sep 8, 2009 11:02:19 AM (16 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:
- 4785dec
- Parents:
- ec38f27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/HayterMSA.cpp
r42ae1d9 r8b677ec 91 91 HayterMSAParameters dp; 92 92 // Fill parameter array 93 dp.effect_radius = 2.0*effect_radius();93 dp.effect_radius = effect_radius(); 94 94 dp.charge = charge(); 95 95 dp.volfraction = volfraction(); … … 108 108 // Loop over radius weight points 109 109 for(int i=0; i<weights_rad.size(); i++) { 110 dp.effect_radius = 2.0*weights_rad[i].value;110 dp.effect_radius = weights_rad[i].value; 111 111 112 113 114 112 double _ptvalue = weights_rad[i].weight 113 * HayterMSA_analytical_2DXY(&dp, qx, qy); 114 sum += _ptvalue; 115 115 116 116 norm += weights_rad[i].weight; 117 117 } 118 118 // Averaging in theta needs an extra normalization
Note: See TracChangeset
for help on using the changeset viewer.