Changeset 34c2649 in sasview for sansmodels/src/sans/models/c_models/cylinder.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/cylinder.cpp
r4628e31 r34c2649 78 78 79 79 // Loop over radius weight points 80 for( int i=0; i<weights_rad.size(); i++) {80 for(size_t i=0; i<weights_rad.size(); i++) { 81 81 dp[1] = weights_rad[i].value; 82 82 83 83 // Loop over length weight points 84 for( int j=0; j<weights_len.size(); j++) {84 for(size_t j=0; j<weights_len.size(); j++) { 85 85 dp[2] = weights_len[j].value; 86 86 //Un-normalize by volume … … 144 144 double pi = 4.0*atan(1.0); 145 145 // Loop over radius weight points 146 for( int i=0; i<weights_rad.size(); i++) {146 for(size_t i=0; i<weights_rad.size(); i++) { 147 147 dp.radius = weights_rad[i].value; 148 148 149 149 150 150 // Loop over length weight points 151 for( int j=0; j<weights_len.size(); j++) {151 for(size_t j=0; j<weights_len.size(); j++) { 152 152 dp.length = weights_len[j].value; 153 153 154 154 // Average over theta distribution 155 for( int k=0; k<weights_theta.size(); k++) {155 for(size_t k=0; k<weights_theta.size(); k++) { 156 156 dp.cyl_theta = weights_theta[k].value; 157 157 158 158 // Average over phi distribution 159 for( int l=0; l<weights_phi.size(); l++) {159 for(size_t l=0; l<weights_phi.size(); l++) { 160 160 dp.cyl_phi = weights_phi[l].value; 161 161 //Un-normalize by volume
Note: See TracChangeset
for help on using the changeset viewer.