Changeset 34c2649 in sasview for sansmodels/src/sans/models/c_models/coreshellcylinder.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/coreshellcylinder.cpp
r4628e31 r34c2649 85 85 86 86 // Loop over radius weight points 87 for( int i=0; i<weights_rad.size(); i++) {87 for(size_t i=0; i<weights_rad.size(); i++) { 88 88 dp[1] = weights_rad[i].value; 89 89 90 90 // Loop over length weight points 91 for( int j=0; j<weights_len.size(); j++) {91 for(size_t j=0; j<weights_len.size(); j++) { 92 92 dp[3] = weights_len[j].value; 93 93 94 94 // Loop over thickness weight points 95 for( int k=0; k<weights_thick.size(); k++) {95 for(size_t k=0; k<weights_thick.size(); k++) { 96 96 dp[2] = weights_thick[k].value; 97 97 //Un-normalize by volume … … 169 169 double pi = 4.0*atan(1.0); 170 170 // Loop over radius weight points 171 for( int i=0; i<weights_rad.size(); i++) {171 for(size_t i=0; i<weights_rad.size(); i++) { 172 172 dp.radius = weights_rad[i].value; 173 173 174 174 175 175 // Loop over length weight points 176 for( int j=0; j<weights_len.size(); j++) {176 for(size_t j=0; j<weights_len.size(); j++) { 177 177 dp.length = weights_len[j].value; 178 178 179 179 // Loop over thickness weight points 180 for( int m=0; m<weights_thick.size(); m++) {180 for(size_t m=0; m<weights_thick.size(); m++) { 181 181 dp.thickness = weights_thick[m].value; 182 182 183 183 // Average over theta distribution 184 for( int k=0; k<weights_theta.size(); k++) {184 for(size_t k=0; k<weights_theta.size(); k++) { 185 185 dp.axis_theta = weights_theta[k].value; 186 186 187 187 // Average over phi distribution 188 for( int l=0; l<weights_phi.size(); l++) {188 for(size_t l=0; l<weights_phi.size(); l++) { 189 189 dp.axis_phi = weights_phi[l].value; 190 190 //Un-normalize by volume
Note: See TracChangeset
for help on using the changeset viewer.