Changeset a94046f in sasmodels for sasmodels/models/core_multi_shell.c
- Timestamp:
- Sep 8, 2018 8:55:23 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- fbaef04
- Parents:
- b763f9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_multi_shell.c
rd277229 ra94046f 32 32 static double 33 33 effective_radius(int mode, double core_radius, double fp_n, double thickness[]) 34 // this seems regardless to always give the result for outer radius for n=1 shells; why?? 35 // printf shows fp_n is always 1, not 0,1,2 34 36 { 35 if (mode == 1) { 37 // printf("fp_n =%g \n",fp_n); 38 if (mode == 1) { 36 39 double r = core_radius; 37 40 int n = (int)(fp_n+0.5); 38 for (int i=0; i < n; i++) { 39 r += thickness[i]; 41 if ( n > 0) { 42 for (int i=0; i < n; i++) { 43 r += thickness[i]; 44 } 40 45 } 41 46 return r;
Note: See TracChangeset
for help on using the changeset viewer.