Changes in / [d26dea0:7d64b0e] in sasview


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/models/c_extension/c_models/lamellarPS.cpp

    r79492222 r37649847  
    6868  ii=0; 
    6969  Sq = 0.0; 
    70   for(ii=1;ii<(NNint-1);ii+=1) { 
     70  for(ii=1;ii<=(NNint-1);ii+=1) { 
    7171 
    7272    fii = (double)ii;   //do I really need to do this? 
     
    144144  for(int i=0; i< (int)weights_spacing.size(); i++) { 
    145145    dp[1] = weights_spacing[i].value; 
    146     for(int j=0; j< (int)weights_spacing.size(); j++) { 
    147       dp[2] = weights_delta[i].value; 
     146    //for(int j=0; j< (int)weights_spacing.size(); j++) {    BUGS fixed March 2015 
     147    for(int j=0; j< (int)weights_delta.size(); j++) { 
     148      //dp[2] = weights_delta[i].value;        BUG 
     149      dp[2] = weights_delta[j].value; 
    148150 
    149151      sum += weights_spacing[i].weight * weights_delta[j].weight * LamellarPS_kernel(dp, q); 
  • src/sas/models/c_extension/libigor/libCylinder.c

    r79492222 r8d302cd  
    13791379        ii=0; 
    13801380        Sq = 0.0; 
    1381         for(ii=1;ii<(NNint-1);ii+=1) { 
     1381        for(ii=1;ii<=(NNint-1);ii+=1) { 
    13821382         
    13831383                fii = (double)ii;               //do I really need to do this? 
     
    14511451        ii=0; 
    14521452        Sq = 0.0; 
    1453         for(ii=1;ii<(NNint-1);ii+=1) { 
     1453        for(ii=1;ii<=(NNint-1);ii+=1) { 
    14541454         
    14551455                fii = (double)ii;               //do I really need to do this? 
  • test/sasmodels/test/utest_other_models.py

    r8c9ffde rac1670a2  
    899899    def test1D(self): 
    900900        """ Test 1D model for a LamellarPS Model""" 
    901         self.assertAlmostEquals(self.comp.run(0.001), 27899.30836, 1) 
     901        self.assertAlmostEquals(self.comp.run(0.001), 28895.13397, 1) 
    902902         
    903903    def test1D_2(self): 
    904904        """ Test 2D model for a LamellarPS Model""" 
    905         self.assertAlmostEquals(self.comp.run([0.001, 1.3]),27899.30836, 1)  
     905        self.assertAlmostEquals(self.comp.run([0.001, 1.3]),28895.13397, 1)  
    906906     
    907907    def testEval_1D(self): 
     
    948948    def test1D(self): 
    949949        """ Test 1D model for a LamellarPSHG Model""" 
    950         self.assertAlmostEquals(self.comp.run(0.001),6831387.29466, 3) 
     950        self.assertAlmostEquals(self.comp.run(0.001),6838238.571488, 3) 
    951951         
    952952    def test1D_2(self): 
    953953        """ Test 2D model for a LamellarPSHG Model""" 
    954         self.assertAlmostEquals(self.comp.run([0.001, 1.3]),6831387.29466,3) 
     954        self.assertAlmostEquals(self.comp.run([0.001, 1.3]),6838238.571488,3) 
    955955         
    956956    def testEval_1D(self): 
Note: See TracChangeset for help on using the changeset viewer.