Changeset b9765ad in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Nov 30, 2011 2:49:01 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
36cbbe74
Parents:
2138c061
Message:

Re #5 fixing librefl compilation on MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_extensions/libmultifunc/librefl.c

    r2138c061 rb9765ad  
    180180        double n_sub,nu, ind; 
    181181{ 
    182         if (n_sub == 0.0) 
    183                 n_sub = 1.0; 
    184  
    185         double bin_size, func; 
     182  double bin_size, func; 
     183        if (n_sub == 0.0) 
     184                n_sub = 1.0; 
     185 
    186186        bin_size = 1.0/n_sub;  //size of each sub-layer 
    187187        // rescale 
     
    195195        double n_sub, nu, ind; 
    196196{ 
     197  double bin_size,func; 
    197198        if (nu == 0.0) 
    198199                nu = 1e-14; 
     
    200201                n_sub = 1.0; 
    201202 
    202         double bin_size,func; 
    203203        bin_size = 1.0/n_sub;  //size of each sub-layer 
    204204        // rescale 
     
    212212        double n_sub, nu, ind; 
    213213{ 
     214  double bin_size, func; 
    214215        if (nu == 0.0) 
    215216                nu = 1e-14; 
     
    217218                n_sub = 1.0; 
    218219 
    219         double bin_size, func; 
    220220        bin_size = 1.0/n_sub;  //size of each sub-layer 
    221221        // rescale 
     
    229229        double n_sub, nu, ind; 
    230230{ 
     231  double bin_size, func; 
    231232        if (nu == 0.0) 
    232233                nu = 1e-14; 
     
    234235                n_sub = 1.0; 
    235236 
    236         double bin_size, func; 
    237237        bin_size = 1.0/n_sub;  //size of each sub-layer 
    238238        // rescale 
     
    250250        double n_sub, nu, ind; 
    251251{ 
     252  double bin_size, func; 
    252253        if (nu == 0.0) 
    253254                nu = 1e-14; 
     
    255256                n_sub = 1.0; 
    256257 
    257         double bin_size, func; 
    258258        bin_size = 1.0/n_sub;  //size of each sub-layer 
    259259        // rescale 
Note: See TracChangeset for help on using the changeset viewer.