Changeset a10da8b in sasmodels


Ignore:
Timestamp:
Mar 20, 2016 5:03:27 AM (9 years ago)
Author:
wojciech
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
Message:

Bug fix in bit mask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_iq.c

    r10ddb64 ra10da8b  
    8989starting location of parameter k in the vector.  Each parameter defines 
    9090coord[k] as a bit mask indicating which polydispersity parameters the 
    91 parameter depends upon.  Usually this is zero, indicating that the parameter 
     91parameter depends upon. Usually this is zero, indicating that the parameter 
    9292is independent, but for the cylinder example given, the bits for the 
    9393radius and length polydispersity parameters would both be set, the result 
     
    197197 
    198198  // Location in the polydispersity cube, one index per dimension. 
     199  local int pd_index[PD_MAX]; 
     200 
    199201  // Set the initial index greater than its vector length in order to 
    200202  // 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]; 
    203204 
    204205  // Loop over the weights then loop over q, accumulating values 
     
    224225              block_size *= pd_length[bit]; 
    225226          } 
     227          coord /= 2; 
    226228        } 
    227229        offset[k] = this_offset; 
     
    264266        result[i] *= norm_vol[i]/vol[i]; 
    265267      } 
     268      //TODO: Ask Richard if scale and background may be corridanted parameters 
    266269      result[i] = scale*result[i]/norm[i]+background; 
    267270    } 
    268271  } 
    269272} 
    270  
     273} 
Note: See TracChangeset for help on using the changeset viewer.