Changes in / [d26dea0:7d64b0e] in sasview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/models/c_extension/c_models/lamellarPS.cpp
r79492222 r37649847 68 68 ii=0; 69 69 Sq = 0.0; 70 for(ii=1;ii< (NNint-1);ii+=1) {70 for(ii=1;ii<=(NNint-1);ii+=1) { 71 71 72 72 fii = (double)ii; //do I really need to do this? … … 144 144 for(int i=0; i< (int)weights_spacing.size(); i++) { 145 145 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; 148 150 149 151 sum += weights_spacing[i].weight * weights_delta[j].weight * LamellarPS_kernel(dp, q); -
src/sas/models/c_extension/libigor/libCylinder.c
r79492222 r8d302cd 1379 1379 ii=0; 1380 1380 Sq = 0.0; 1381 for(ii=1;ii< (NNint-1);ii+=1) {1381 for(ii=1;ii<=(NNint-1);ii+=1) { 1382 1382 1383 1383 fii = (double)ii; //do I really need to do this? … … 1451 1451 ii=0; 1452 1452 Sq = 0.0; 1453 for(ii=1;ii< (NNint-1);ii+=1) {1453 for(ii=1;ii<=(NNint-1);ii+=1) { 1454 1454 1455 1455 fii = (double)ii; //do I really need to do this? -
test/sasmodels/test/utest_other_models.py
r8c9ffde rac1670a2 899 899 def test1D(self): 900 900 """ Test 1D model for a LamellarPS Model""" 901 self.assertAlmostEquals(self.comp.run(0.001), 2 7899.30836, 1)901 self.assertAlmostEquals(self.comp.run(0.001), 28895.13397, 1) 902 902 903 903 def test1D_2(self): 904 904 """ Test 2D model for a LamellarPS Model""" 905 self.assertAlmostEquals(self.comp.run([0.001, 1.3]),2 7899.30836, 1)905 self.assertAlmostEquals(self.comp.run([0.001, 1.3]),28895.13397, 1) 906 906 907 907 def testEval_1D(self): … … 948 948 def test1D(self): 949 949 """ Test 1D model for a LamellarPSHG Model""" 950 self.assertAlmostEquals(self.comp.run(0.001),683 1387.29466, 3)950 self.assertAlmostEquals(self.comp.run(0.001),6838238.571488, 3) 951 951 952 952 def test1D_2(self): 953 953 """ Test 2D model for a LamellarPSHG Model""" 954 self.assertAlmostEquals(self.comp.run([0.001, 1.3]),683 1387.29466,3)954 self.assertAlmostEquals(self.comp.run([0.001, 1.3]),6838238.571488,3) 955 955 956 956 def testEval_1D(self):
Note: See TracChangeset
for help on using the changeset viewer.