Changeset 36cbbe74 in sasview


Ignore:
Timestamp:
Nov 30, 2011 2:57:08 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:
a807ffd
Parents:
b9765ad
Message:

Re #5 fixing onion compilation on MSVC

File:
1 edited

Legend:

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

    r890ac7f1 r36cbbe74  
    99// some details can be found in sld_cal.c 
    1010double so_kernel(double dp[], double q) { 
    11         int n = dp[0]; 
     11        const int n = dp[0]; 
    1212        double scale = dp[1]; 
    1313        double rad_core0 = dp[2]; 
     
    1515        double sld_solv = dp[4]; 
    1616        double background = dp[5]; 
    17         double sld_out[n+2]; 
    18         double slope[n+2]; 
    19         double sld_in[n+2]; 
    20         double thick[n+2]; 
    21         double A[n+2]; 
    22         int fun_type[n+2]; 
    2317        int i,j; 
    2418  double bes,fun,alpha,f,vol,vol_pre,vol_sub,qr,r,contr,f2; 
     
    2620  double pi; 
    2721  double r0 = 0.0; 
     22 
     23 
     24  double sld_out[n+2]; 
     25  double slope[n+2]; 
     26  double sld_in[n+2]; 
     27  double thick[n+2]; 
     28  double A[n+2]; 
     29  int fun_type[n+2]; 
     30 
    2831 
    2932        for (i =1; i<=n; i++){ 
Note: See TracChangeset for help on using the changeset viewer.