Changeset a10da8b in sasmodels
- Timestamp:
- Mar 20, 2016 5:03:27 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 44f39a2
- Parents:
- 6eee37f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_iq.c
r10ddb64 ra10da8b 89 89 starting location of parameter k in the vector. Each parameter defines 90 90 coord[k] as a bit mask indicating which polydispersity parameters the 91 parameter depends upon. 91 parameter depends upon. Usually this is zero, indicating that the parameter 92 92 is independent, but for the cylinder example given, the bits for the 93 93 radius and length polydispersity parameters would both be set, the result … … 197 197 198 198 // Location in the polydispersity cube, one index per dimension. 199 local int pd_index[PD_MAX]; 200 199 201 // Set the initial index greater than its vector length in order to 200 202 // trigger the reset behaviour that happens at the end the fast loop. 201 local int pd_index[PD_MAX]; 202 pd_index[0] = pd_length[0] 203 pd_index[0] = pd_length[0]; 203 204 204 205 // Loop over the weights then loop over q, accumulating values … … 224 225 block_size *= pd_length[bit]; 225 226 } 227 coord /= 2; 226 228 } 227 229 offset[k] = this_offset; … … 264 266 result[i] *= norm_vol[i]/vol[i]; 265 267 } 268 //TODO: Ask Richard if scale and background may be corridanted parameters 266 269 result[i] = scale*result[i]/norm[i]+background; 267 270 } 268 271 } 269 272 } 270 273 }
Note: See TracChangeset
for help on using the changeset viewer.