Changeset 34c2649 in sasview for sansmodels/src/sans/models/c_models/polygausscoil.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/polygausscoil.cpp
r8569cb9 r34c2649 67 67 68 68 // Loop over radius weight points 69 for( int i=0; i<weights_rad.size(); i++) {69 for(size_t i=0; i<weights_rad.size(); i++) { 70 70 dp[1] = weights_rad[i].value; 71 71 … … 117 117 */ 118 118 double Poly_GaussCoil :: calculate_ER() { 119 PolyGaussCoilParameters dp;120 dp.scale = scale();121 dp.rg= rg();122 dp.poly_m = poly_m();123 dp.background = background();124 119 double rad_out = 0.0; 125 120 … … 132 127 rg.get_weights(weights_rad); 133 128 // Loop over radius weight points to average the radius value 134 for( int i=0; i<weights_rad.size(); i++) {129 for(size_t i=0; i<weights_rad.size(); i++) { 135 130 sum += weights_rad[i].weight 136 131 * weights_rad[i].value;
Note: See TracChangeset
for help on using the changeset viewer.