Changeset 34c2649 in sasview for sansmodels/src/sans/models/c_models/ellipsoid.cpp
- Timestamp:
- Nov 21, 2011 4:52:25 PM (13 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:
- 1810613
- Parents:
- afea8fe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/ellipsoid.cpp
r4628e31 r34c2649 78 78 79 79 // Loop over radius_a weight points 80 for( int i=0; i<weights_rad_a.size(); i++) {80 for(size_t i=0; i<weights_rad_a.size(); i++) { 81 81 dp[1] = weights_rad_a[i].value; 82 82 83 83 // Loop over radius_b weight points 84 for( int j=0; j<weights_rad_b.size(); j++) {84 for(size_t j=0; j<weights_rad_b.size(); j++) { 85 85 dp[2] = weights_rad_b[j].value; 86 86 //Un-normalize by volume … … 147 147 double pi = 4.0*atan(1.0); 148 148 // Loop over radius weight points 149 for( int i=0; i<weights_rad_a.size(); i++) {149 for(size_t i=0; i<weights_rad_a.size(); i++) { 150 150 dp.radius_a = weights_rad_a[i].value; 151 151 152 152 153 153 // Loop over length weight points 154 for( int j=0; j<weights_rad_b.size(); j++) {154 for(size_t j=0; j<weights_rad_b.size(); j++) { 155 155 dp.radius_b = weights_rad_b[j].value; 156 156 157 157 // Average over theta distribution 158 for( int k=0; k<weights_theta.size(); k++) {158 for(size_t k=0; k<weights_theta.size(); k++) { 159 159 dp.axis_theta = weights_theta[k].value; 160 160 161 161 // Average over phi distribution 162 for( int l=0; l<weights_phi.size(); l++) {162 for(size_t l=0; l<weights_phi.size(); l++) { 163 163 dp.axis_phi = weights_phi[l].value; 164 164 //Un-normalize by volume
Note: See TracChangeset
for help on using the changeset viewer.