Changeset 8b677ec in sasview for sansmodels/src/sans/models/c_models


Ignore:
Timestamp:
Sep 8, 2009 11:02:19 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
4785dec
Parents:
ec38f27
Message:

Corrections are made after multiplicationmodel unittest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/HayterMSA.cpp

    r42ae1d9 r8b677ec  
    9191        HayterMSAParameters dp; 
    9292        // Fill parameter array 
    93         dp.effect_radius      = 2.0*effect_radius(); 
     93        dp.effect_radius      = effect_radius(); 
    9494        dp.charge      = charge(); 
    9595        dp.volfraction = volfraction(); 
     
    108108        // Loop over radius weight points 
    109109        for(int i=0; i<weights_rad.size(); i++) { 
    110                 dp.effect_radius = 2.0*weights_rad[i].value; 
     110                dp.effect_radius = weights_rad[i].value; 
    111111 
    112                                         double _ptvalue = weights_rad[i].weight 
    113                                                 * HayterMSA_analytical_2DXY(&dp, qx, qy); 
    114                                         sum += _ptvalue; 
     112                double _ptvalue = weights_rad[i].weight 
     113                        * HayterMSA_analytical_2DXY(&dp, qx, qy); 
     114                sum += _ptvalue; 
    115115 
    116                                         norm += weights_rad[i].weight; 
     116                norm += weights_rad[i].weight; 
    117117        } 
    118118        // Averaging in theta needs an extra normalization 
Note: See TracChangeset for help on using the changeset viewer.