Changeset e0a8a3c in sasview for sansmodels/src/sans


Ignore:
Timestamp:
Aug 24, 2009 2:59:30 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
1943097
Parents:
8a25523
Message:

change the orientation of models

Location:
sansmodels/src/sans/models
Files:
22 added
32 edited

Legend:

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

    ra8d6888 re0a8a3c  
    204204        
    205205        /* Do the calculation. */ 
    206         for ( i=0; i< x_len; i++) { 
    207             for ( j=0; j< y_len; j++) { 
     206        for ( j=0; j< y_len; j++) { 
     207            for ( i=0; i< x_len; i++) { 
    208208                double x_value = *(double *)(x->data + i*x->strides[1]); 
    209209                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    291291                return NULL; 
    292292             } 
    293         }else{ 
    294             PyErr_SetString(CBinaryHSModelError,  
     293        } 
     294        PyErr_SetString(CBinaryHSModelError,  
    295295                   "CBinaryHSModel.evalDistribution couln't be run."); 
    296             return NULL; 
    297         } 
     296        return NULL; 
     297         
    298298} 
    299299 
  • sansmodels/src/sans/models/c_models/CBinaryHSPSF11Model.cpp

    ra8d6888 re0a8a3c  
    204204        
    205205        /* Do the calculation. */ 
    206         for ( i=0; i< x_len; i++) { 
    207             for ( j=0; j< y_len; j++) { 
     206        for ( j=0; j< y_len; j++) { 
     207            for ( i=0; i< x_len; i++) { 
    208208                double x_value = *(double *)(x->data + i*x->strides[1]); 
    209209                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    291291                return NULL; 
    292292             } 
    293         }else{ 
    294             PyErr_SetString(CBinaryHSPSF11ModelError,  
     293        } 
     294        PyErr_SetString(CBinaryHSPSF11ModelError,  
    295295                   "CBinaryHSPSF11Model.evalDistribution couln't be run."); 
    296             return NULL; 
    297         } 
     296        return NULL; 
     297         
    298298} 
    299299 
  • sansmodels/src/sans/models/c_models/CCoreShellCylinderModel.cpp

    ra8d6888 re0a8a3c  
    215215        
    216216        /* Do the calculation. */ 
    217         for ( i=0; i< x_len; i++) { 
    218             for ( j=0; j< y_len; j++) { 
     217        for ( j=0; j< y_len; j++) { 
     218            for ( i=0; i< x_len; i++) { 
    219219                double x_value = *(double *)(x->data + i*x->strides[1]); 
    220220                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    310310                return NULL; 
    311311             } 
    312         }else{ 
    313             PyErr_SetString(CCoreShellCylinderModelError,  
     312        } 
     313        PyErr_SetString(CCoreShellCylinderModelError,  
    314314                   "CCoreShellCylinderModel.evalDistribution couln't be run."); 
    315             return NULL; 
    316         } 
     315        return NULL; 
     316         
    317317} 
    318318 
  • sansmodels/src/sans/models/c_models/CCoreShellEllipsoidModel.cpp

    ra8d6888 re0a8a3c  
    218218        
    219219        /* Do the calculation. */ 
    220         for ( i=0; i< x_len; i++) { 
    221             for ( j=0; j< y_len; j++) { 
     220        for ( j=0; j< y_len; j++) { 
     221            for ( i=0; i< x_len; i++) { 
    222222                double x_value = *(double *)(x->data + i*x->strides[1]); 
    223223                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    315315                return NULL; 
    316316             } 
    317         }else{ 
    318             PyErr_SetString(CCoreShellEllipsoidModelError,  
     317        } 
     318        PyErr_SetString(CCoreShellEllipsoidModelError,  
    319319                   "CCoreShellEllipsoidModel.evalDistribution couln't be run."); 
    320             return NULL; 
    321         } 
     320        return NULL; 
     321         
    322322} 
    323323 
  • sansmodels/src/sans/models/c_models/CCoreShellModel.cpp

    ra8d6888 re0a8a3c  
    203203        
    204204        /* Do the calculation. */ 
    205         for ( i=0; i< x_len; i++) { 
    206             for ( j=0; j< y_len; j++) { 
     205        for ( j=0; j< y_len; j++) { 
     206            for ( i=0; i< x_len; i++) { 
    207207                double x_value = *(double *)(x->data + i*x->strides[1]); 
    208208                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    289289                return NULL; 
    290290             } 
    291         }else{ 
    292             PyErr_SetString(CCoreShellModelError,  
     291        } 
     292        PyErr_SetString(CCoreShellModelError,  
    293293                   "CCoreShellModel.evalDistribution couln't be run."); 
    294             return NULL; 
    295         } 
     294        return NULL; 
     295         
    296296} 
    297297 
  • sansmodels/src/sans/models/c_models/CCylinderModel.cpp

    ra8d6888 re0a8a3c  
    209209        
    210210        /* Do the calculation. */ 
    211         for ( i=0; i< x_len; i++) { 
    212             for ( j=0; j< y_len; j++) { 
     211        for ( j=0; j< y_len; j++) { 
     212            for ( i=0; i< x_len; i++) { 
    213213                double x_value = *(double *)(x->data + i*x->strides[1]); 
    214214                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    299299                return NULL; 
    300300             } 
    301         }else{ 
    302             PyErr_SetString(CCylinderModelError,  
     301        } 
     302        PyErr_SetString(CCylinderModelError,  
    303303                   "CCylinderModel.evalDistribution couln't be run."); 
    304             return NULL; 
    305         } 
     304        return NULL; 
     305         
    306306} 
    307307 
  • sansmodels/src/sans/models/c_models/CDiamCylFunc.cpp

    ra8d6888 re0a8a3c  
    198198        
    199199        /* Do the calculation. */ 
    200         for ( i=0; i< x_len; i++) { 
    201             for ( j=0; j< y_len; j++) { 
     200        for ( j=0; j< y_len; j++) { 
     201            for ( i=0; i< x_len; i++) { 
    202202                double x_value = *(double *)(x->data + i*x->strides[1]); 
    203203                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    279279                return NULL; 
    280280             } 
    281         }else{ 
    282             PyErr_SetString(CDiamCylFuncError,  
     281        } 
     282        PyErr_SetString(CDiamCylFuncError,  
    283283                   "CDiamCylFunc.evalDistribution couln't be run."); 
    284             return NULL; 
    285         } 
     284        return NULL; 
     285         
    286286} 
    287287 
  • sansmodels/src/sans/models/c_models/CDiamEllipFunc.cpp

    ra8d6888 re0a8a3c  
    198198        
    199199        /* Do the calculation. */ 
    200         for ( i=0; i< x_len; i++) { 
    201             for ( j=0; j< y_len; j++) { 
     200        for ( j=0; j< y_len; j++) { 
     201            for ( i=0; i< x_len; i++) { 
    202202                double x_value = *(double *)(x->data + i*x->strides[1]); 
    203203                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    279279                return NULL; 
    280280             } 
    281         }else{ 
    282             PyErr_SetString(CDiamEllipFuncError,  
     281        } 
     282        PyErr_SetString(CDiamEllipFuncError,  
    283283                   "CDiamEllipFunc.evalDistribution couln't be run."); 
    284             return NULL; 
    285         } 
     284        return NULL; 
     285         
    286286} 
    287287 
  • sansmodels/src/sans/models/c_models/CEllipsoidModel.cpp

    ra8d6888 re0a8a3c  
    209209        
    210210        /* Do the calculation. */ 
    211         for ( i=0; i< x_len; i++) { 
    212             for ( j=0; j< y_len; j++) { 
     211        for ( j=0; j< y_len; j++) { 
     212            for ( i=0; i< x_len; i++) { 
    213213                double x_value = *(double *)(x->data + i*x->strides[1]); 
    214214                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    299299                return NULL; 
    300300             } 
    301         }else{ 
    302             PyErr_SetString(CEllipsoidModelError,  
     301        } 
     302        PyErr_SetString(CEllipsoidModelError,  
    303303                   "CEllipsoidModel.evalDistribution couln't be run."); 
    304             return NULL; 
    305         } 
     304        return NULL; 
     305         
    306306} 
    307307 
  • sansmodels/src/sans/models/c_models/CEllipticalCylinderModel.cpp

    ra8d6888 re0a8a3c  
    217217        
    218218        /* Do the calculation. */ 
    219         for ( i=0; i< x_len; i++) { 
    220             for ( j=0; j< y_len; j++) { 
     219        for ( j=0; j< y_len; j++) { 
     220            for ( i=0; i< x_len; i++) { 
    221221                double x_value = *(double *)(x->data + i*x->strides[1]); 
    222222                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    313313                return NULL; 
    314314             } 
    315         }else{ 
    316             PyErr_SetString(CEllipticalCylinderModelError,  
     315        } 
     316        PyErr_SetString(CEllipticalCylinderModelError,  
    317317                   "CEllipticalCylinderModel.evalDistribution couln't be run."); 
    318             return NULL; 
    319         } 
     318        return NULL; 
     319         
    320320} 
    321321 
  • sansmodels/src/sans/models/c_models/CFlexibleCylinderModel.cpp

    ra8d6888 re0a8a3c  
    205205        
    206206        /* Do the calculation. */ 
    207         for ( i=0; i< x_len; i++) { 
    208             for ( j=0; j< y_len; j++) { 
     207        for ( j=0; j< y_len; j++) { 
     208            for ( i=0; i< x_len; i++) { 
    209209                double x_value = *(double *)(x->data + i*x->strides[1]); 
    210210                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    292292                return NULL; 
    293293             } 
    294         }else{ 
    295             PyErr_SetString(CFlexibleCylinderModelError,  
     294        } 
     295        PyErr_SetString(CFlexibleCylinderModelError,  
    296296                   "CFlexibleCylinderModel.evalDistribution couln't be run."); 
    297             return NULL; 
    298         } 
     297        return NULL; 
     298         
    299299} 
    300300 
  • sansmodels/src/sans/models/c_models/CGaussian.cpp

    ra8d6888 re0a8a3c  
    193193        
    194194        /* Do the calculation. */ 
    195         for ( i=0; i< x_len; i++) { 
    196             for ( j=0; j< y_len; j++) { 
     195        for ( j=0; j< y_len; j++) { 
     196            for ( i=0; i< x_len; i++) { 
    197197                double x_value = *(double *)(x->data + i*x->strides[1]); 
    198198                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    271271                return NULL; 
    272272             } 
    273         }else{ 
    274             PyErr_SetString(CGaussianError,  
     273        } 
     274        PyErr_SetString(CGaussianError,  
    275275                   "CGaussian.evalDistribution couln't be run."); 
    276             return NULL; 
    277         } 
     276        return NULL; 
     277         
    278278} 
    279279 
  • sansmodels/src/sans/models/c_models/CHardsphereStructure.cpp

    ra8d6888 re0a8a3c  
    195195        
    196196        /* Do the calculation. */ 
    197         for ( i=0; i< x_len; i++) { 
    198             for ( j=0; j< y_len; j++) { 
     197        for ( j=0; j< y_len; j++) { 
     198            for ( i=0; i< x_len; i++) { 
    199199                double x_value = *(double *)(x->data + i*x->strides[1]); 
    200200                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    274274                return NULL; 
    275275             } 
    276         }else{ 
    277             PyErr_SetString(CHardsphereStructureError,  
     276        } 
     277        PyErr_SetString(CHardsphereStructureError,  
    278278                   "CHardsphereStructure.evalDistribution couln't be run."); 
    279             return NULL; 
    280         } 
     279        return NULL; 
     280         
    281281} 
    282282 
  • sansmodels/src/sans/models/c_models/CHayterMSAStructure.cpp

    ra8d6888 re0a8a3c  
    199199        
    200200        /* Do the calculation. */ 
    201         for ( i=0; i< x_len; i++) { 
    202             for ( j=0; j< y_len; j++) { 
     201        for ( j=0; j< y_len; j++) { 
     202            for ( i=0; i< x_len; i++) { 
    203203                double x_value = *(double *)(x->data + i*x->strides[1]); 
    204204                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    282282                return NULL; 
    283283             } 
    284         }else{ 
    285             PyErr_SetString(CHayterMSAStructureError,  
     284        } 
     285        PyErr_SetString(CHayterMSAStructureError,  
    286286                   "CHayterMSAStructure.evalDistribution couln't be run."); 
    287             return NULL; 
    288         } 
     287        return NULL; 
     288         
    289289} 
    290290 
  • sansmodels/src/sans/models/c_models/CHollowCylinderModel.cpp

    ra8d6888 re0a8a3c  
    213213        
    214214        /* Do the calculation. */ 
    215         for ( i=0; i< x_len; i++) { 
    216             for ( j=0; j< y_len; j++) { 
     215        for ( j=0; j< y_len; j++) { 
     216            for ( i=0; i< x_len; i++) { 
    217217                double x_value = *(double *)(x->data + i*x->strides[1]); 
    218218                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    306306                return NULL; 
    307307             } 
    308         }else{ 
    309             PyErr_SetString(CHollowCylinderModelError,  
     308        } 
     309        PyErr_SetString(CHollowCylinderModelError,  
    310310                   "CHollowCylinderModel.evalDistribution couln't be run."); 
    311             return NULL; 
    312         } 
     311        return NULL; 
     312         
    313313} 
    314314 
  • sansmodels/src/sans/models/c_models/CLamellarFFHGModel.cpp

    ra8d6888 re0a8a3c  
    203203        
    204204        /* Do the calculation. */ 
    205         for ( i=0; i< x_len; i++) { 
    206             for ( j=0; j< y_len; j++) { 
     205        for ( j=0; j< y_len; j++) { 
     206            for ( i=0; i< x_len; i++) { 
    207207                double x_value = *(double *)(x->data + i*x->strides[1]); 
    208208                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    289289                return NULL; 
    290290             } 
    291         }else{ 
    292             PyErr_SetString(CLamellarFFHGModelError,  
     291        } 
     292        PyErr_SetString(CLamellarFFHGModelError,  
    293293                   "CLamellarFFHGModel.evalDistribution couln't be run."); 
    294             return NULL; 
    295         } 
     294        return NULL; 
     295         
    296296} 
    297297 
  • sansmodels/src/sans/models/c_models/CLamellarModel.cpp

    ra8d6888 re0a8a3c  
    198198        
    199199        /* Do the calculation. */ 
    200         for ( i=0; i< x_len; i++) { 
    201             for ( j=0; j< y_len; j++) { 
     200        for ( j=0; j< y_len; j++) { 
     201            for ( i=0; i< x_len; i++) { 
    202202                double x_value = *(double *)(x->data + i*x->strides[1]); 
    203203                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    280280                return NULL; 
    281281             } 
    282         }else{ 
    283             PyErr_SetString(CLamellarModelError,  
     282        } 
     283        PyErr_SetString(CLamellarModelError,  
    284284                   "CLamellarModel.evalDistribution couln't be run."); 
    285             return NULL; 
    286         } 
     285        return NULL; 
     286         
    287287} 
    288288 
  • sansmodels/src/sans/models/c_models/CLamellarPSHGModel.cpp

    ra8d6888 re0a8a3c  
    209209        
    210210        /* Do the calculation. */ 
    211         for ( i=0; i< x_len; i++) { 
    212             for ( j=0; j< y_len; j++) { 
     211        for ( j=0; j< y_len; j++) { 
     212            for ( i=0; i< x_len; i++) { 
    213213                double x_value = *(double *)(x->data + i*x->strides[1]); 
    214214                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    300300                return NULL; 
    301301             } 
    302         }else{ 
    303             PyErr_SetString(CLamellarPSHGModelError,  
     302        } 
     303        PyErr_SetString(CLamellarPSHGModelError,  
    304304                   "CLamellarPSHGModel.evalDistribution couln't be run."); 
    305             return NULL; 
    306         } 
     305        return NULL; 
     306         
    307307} 
    308308 
  • sansmodels/src/sans/models/c_models/CLamellarPSModel.cpp

    ra8d6888 re0a8a3c  
    203203        
    204204        /* Do the calculation. */ 
    205         for ( i=0; i< x_len; i++) { 
    206             for ( j=0; j< y_len; j++) { 
     205        for ( j=0; j< y_len; j++) { 
     206            for ( i=0; i< x_len; i++) { 
    207207                double x_value = *(double *)(x->data + i*x->strides[1]); 
    208208                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    289289                return NULL; 
    290290             } 
    291         }else{ 
    292             PyErr_SetString(CLamellarPSModelError,  
     291        } 
     292        PyErr_SetString(CLamellarPSModelError,  
    293293                   "CLamellarPSModel.evalDistribution couln't be run."); 
    294             return NULL; 
    295         } 
     294        return NULL; 
     295         
    296296} 
    297297 
  • sansmodels/src/sans/models/c_models/CLogNormal.cpp

    ra8d6888 re0a8a3c  
    193193        
    194194        /* Do the calculation. */ 
    195         for ( i=0; i< x_len; i++) { 
    196             for ( j=0; j< y_len; j++) { 
     195        for ( j=0; j< y_len; j++) { 
     196            for ( i=0; i< x_len; i++) { 
    197197                double x_value = *(double *)(x->data + i*x->strides[1]); 
    198198                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    271271                return NULL; 
    272272             } 
    273         }else{ 
    274             PyErr_SetString(CLogNormalError,  
     273        } 
     274        PyErr_SetString(CLogNormalError,  
    275275                   "CLogNormal.evalDistribution couln't be run."); 
    276             return NULL; 
    277         } 
     276        return NULL; 
     277         
    278278} 
    279279 
  • sansmodels/src/sans/models/c_models/CLorentzian.cpp

    ra8d6888 re0a8a3c  
    193193        
    194194        /* Do the calculation. */ 
    195         for ( i=0; i< x_len; i++) { 
    196             for ( j=0; j< y_len; j++) { 
     195        for ( j=0; j< y_len; j++) { 
     196            for ( i=0; i< x_len; i++) { 
    197197                double x_value = *(double *)(x->data + i*x->strides[1]); 
    198198                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    271271                return NULL; 
    272272             } 
    273         }else{ 
    274             PyErr_SetString(CLorentzianError,  
     273        } 
     274        PyErr_SetString(CLorentzianError,  
    275275                   "CLorentzian.evalDistribution couln't be run."); 
    276             return NULL; 
    277         } 
     276        return NULL; 
     277         
    278278} 
    279279 
  • sansmodels/src/sans/models/c_models/CMultiShellModel.cpp

    ra8d6888 re0a8a3c  
    207207        
    208208        /* Do the calculation. */ 
    209         for ( i=0; i< x_len; i++) { 
    210             for ( j=0; j< y_len; j++) { 
     209        for ( j=0; j< y_len; j++) { 
     210            for ( i=0; i< x_len; i++) { 
    211211                double x_value = *(double *)(x->data + i*x->strides[1]); 
    212212                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    296296                return NULL; 
    297297             } 
    298         }else{ 
    299             PyErr_SetString(CMultiShellModelError,  
     298        } 
     299        PyErr_SetString(CMultiShellModelError,  
    300300                   "CMultiShellModel.evalDistribution couln't be run."); 
    301             return NULL; 
    302         } 
     301        return NULL; 
     302         
    303303} 
    304304 
  • sansmodels/src/sans/models/c_models/COblateModel.cpp

    ra8d6888 re0a8a3c  
    212212        
    213213        /* Do the calculation. */ 
    214         for ( i=0; i< x_len; i++) { 
    215             for ( j=0; j< y_len; j++) { 
     214        for ( j=0; j< y_len; j++) { 
     215            for ( i=0; i< x_len; i++) { 
    216216                double x_value = *(double *)(x->data + i*x->strides[1]); 
    217217                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    305305                return NULL; 
    306306             } 
    307         }else{ 
    308             PyErr_SetString(COblateModelError,  
     307        } 
     308        PyErr_SetString(COblateModelError,  
    309309                   "COblateModel.evalDistribution couln't be run."); 
    310             return NULL; 
    311         } 
     310        return NULL; 
     311         
    312312} 
    313313 
  • sansmodels/src/sans/models/c_models/CParallelepipedModel.cpp

    ra8d6888 re0a8a3c  
    217217        
    218218        /* Do the calculation. */ 
    219         for ( i=0; i< x_len; i++) { 
    220             for ( j=0; j< y_len; j++) { 
     219        for ( j=0; j< y_len; j++) { 
     220            for ( i=0; i< x_len; i++) { 
    221221                double x_value = *(double *)(x->data + i*x->strides[1]); 
    222222                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    313313                return NULL; 
    314314             } 
    315         }else{ 
    316             PyErr_SetString(CParallelepipedModelError,  
     315        } 
     316        PyErr_SetString(CParallelepipedModelError,  
    317317                   "CParallelepipedModel.evalDistribution couln't be run."); 
    318             return NULL; 
    319         } 
     318        return NULL; 
     319         
    320320} 
    321321 
  • sansmodels/src/sans/models/c_models/CProlateModel.cpp

    ra8d6888 re0a8a3c  
    210210        
    211211        /* Do the calculation. */ 
    212         for ( i=0; i< x_len; i++) { 
    213             for ( j=0; j< y_len; j++) { 
     212        for ( j=0; j< y_len; j++) { 
     213            for ( i=0; i< x_len; i++) { 
    214214                double x_value = *(double *)(x->data + i*x->strides[1]); 
    215215                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    301301                return NULL; 
    302302             } 
    303         }else{ 
    304             PyErr_SetString(CProlateModelError,  
     303        } 
     304        PyErr_SetString(CProlateModelError,  
    305305                   "CProlateModel.evalDistribution couln't be run."); 
    306             return NULL; 
    307         } 
     306        return NULL; 
     307         
    308308} 
    309309 
  • sansmodels/src/sans/models/c_models/CSphereModel.cpp

    ra8d6888 re0a8a3c  
    197197        
    198198        /* Do the calculation. */ 
    199         for ( i=0; i< x_len; i++) { 
    200             for ( j=0; j< y_len; j++) { 
     199        for ( j=0; j< y_len; j++) { 
     200            for ( i=0; i< x_len; i++) { 
    201201                double x_value = *(double *)(x->data + i*x->strides[1]); 
    202202                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    278278                return NULL; 
    279279             } 
    280         }else{ 
    281             PyErr_SetString(CSphereModelError,  
     280        } 
     281        PyErr_SetString(CSphereModelError,  
    282282                   "CSphereModel.evalDistribution couln't be run."); 
    283             return NULL; 
    284         } 
     283        return NULL; 
     284         
    285285} 
    286286 
  • sansmodels/src/sans/models/c_models/CSquareWellStructure.cpp

    ra8d6888 re0a8a3c  
    197197        
    198198        /* Do the calculation. */ 
    199         for ( i=0; i< x_len; i++) { 
    200             for ( j=0; j< y_len; j++) { 
     199        for ( j=0; j< y_len; j++) { 
     200            for ( i=0; i< x_len; i++) { 
    201201                double x_value = *(double *)(x->data + i*x->strides[1]); 
    202202                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    278278                return NULL; 
    279279             } 
    280         }else{ 
    281             PyErr_SetString(CSquareWellStructureError,  
     280        } 
     281        PyErr_SetString(CSquareWellStructureError,  
    282282                   "CSquareWellStructure.evalDistribution couln't be run."); 
    283             return NULL; 
    284         } 
     283        return NULL; 
     284         
    285285} 
    286286 
  • sansmodels/src/sans/models/c_models/CStackedDisksModel.cpp

    ra8d6888 re0a8a3c  
    217217        
    218218        /* Do the calculation. */ 
    219         for ( i=0; i< x_len; i++) { 
    220             for ( j=0; j< y_len; j++) { 
     219        for ( j=0; j< y_len; j++) { 
     220            for ( i=0; i< x_len; i++) { 
    221221                double x_value = *(double *)(x->data + i*x->strides[1]); 
    222222                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    314314                return NULL; 
    315315             } 
    316         }else{ 
    317             PyErr_SetString(CStackedDisksModelError,  
     316        } 
     317        PyErr_SetString(CStackedDisksModelError,  
    318318                   "CStackedDisksModel.evalDistribution couln't be run."); 
    319             return NULL; 
    320         } 
     319        return NULL; 
     320         
    321321} 
    322322 
  • sansmodels/src/sans/models/c_models/CStickyHSStructure.cpp

    ra8d6888 re0a8a3c  
    197197        
    198198        /* Do the calculation. */ 
    199         for ( i=0; i< x_len; i++) { 
    200             for ( j=0; j< y_len; j++) { 
     199        for ( j=0; j< y_len; j++) { 
     200            for ( i=0; i< x_len; i++) { 
    201201                double x_value = *(double *)(x->data + i*x->strides[1]); 
    202202                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    278278                return NULL; 
    279279             } 
    280         }else{ 
    281             PyErr_SetString(CStickyHSStructureError,  
     280        } 
     281        PyErr_SetString(CStickyHSStructureError,  
    282282                   "CStickyHSStructure.evalDistribution couln't be run."); 
    283             return NULL; 
    284         } 
     283        return NULL; 
     284         
    285285} 
    286286 
  • sansmodels/src/sans/models/c_models/CTriaxialEllipsoidModel.cpp

    ra8d6888 re0a8a3c  
    208208        
    209209        /* Do the calculation. */ 
    210         for ( i=0; i< x_len; i++) { 
    211             for ( j=0; j< y_len; j++) { 
     210        for ( j=0; j< y_len; j++) { 
     211            for ( i=0; i< x_len; i++) { 
    212212                double x_value = *(double *)(x->data + i*x->strides[1]); 
    213213                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    298298                return NULL; 
    299299             } 
    300         }else{ 
    301             PyErr_SetString(CTriaxialEllipsoidModelError,  
     300        } 
     301        PyErr_SetString(CTriaxialEllipsoidModelError,  
    302302                   "CTriaxialEllipsoidModel.evalDistribution couln't be run."); 
    303             return NULL; 
    304         } 
     303        return NULL; 
     304         
    305305} 
    306306 
  • sansmodels/src/sans/models/c_models/CVesicleModel.cpp

    ra8d6888 re0a8a3c  
    202202        
    203203        /* Do the calculation. */ 
    204         for ( i=0; i< x_len; i++) { 
    205             for ( j=0; j< y_len; j++) { 
     204        for ( j=0; j< y_len; j++) { 
     205            for ( i=0; i< x_len; i++) { 
    206206                double x_value = *(double *)(x->data + i*x->strides[1]); 
    207207                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    287287                return NULL; 
    288288             } 
    289         }else{ 
    290             PyErr_SetString(CVesicleModelError,  
     289        } 
     290        PyErr_SetString(CVesicleModelError,  
    291291                   "CVesicleModel.evalDistribution couln't be run."); 
    292             return NULL; 
    293         } 
     292        return NULL; 
     293         
    294294} 
    295295 
  • sansmodels/src/sans/models/c_models/classTemplate.txt

    ra8d6888 re0a8a3c  
    183183        
    184184        /* Do the calculation. */ 
    185         for ( i=0; i< x_len; i++) { 
    186             for ( j=0; j< y_len; j++) { 
     185        for ( j=0; j< y_len; j++) { 
     186            for ( i=0; i< x_len; i++) { 
    187187                double x_value = *(double *)(x->data + i*x->strides[1]); 
    188188                    double y_value = *(double *)(y->data + j*y->strides[0]); 
     
    254254                return NULL; 
    255255             } 
    256         }else{ 
    257             PyErr_SetString([PYTHONCLASS]Error,  
     256        } 
     257        PyErr_SetString([PYTHONCLASS]Error,  
    258258                   "[PYTHONCLASS].evalDistribution couln't be run."); 
    259             return NULL; 
    260         } 
     259        return NULL; 
     260         
    261261} 
    262262 
Note: See TracChangeset for help on using the changeset viewer.