Ignore:
Timestamp:
May 6, 2010 10:13:31 AM (13 years ago)
Author:
srkline
Message:

Fix conditional compile error if GenCurveFit? not installed

New version number 7.02 for Summer School release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/GeneticOptimization/NCNR_GenFitUtils.ipf

    r704 r705  
    154154// need to pass back the chi-squared and number of points. "V_" globals don't appear 
    155155// 
     156// function will only compile if the GenCurveFit XOP is installed - else it will return zero 
     157// 
    156158Function DoGenCurveFit(useRes,useCursors,sw,fitYw,fs,funcStr,holdStr,val,lolim,hilim,pt1,pt2) 
    157159        Variable useRes,useCursors 
     
    162164        WAVE/T lolim,hilim 
    163165        Variable pt1,pt2                //already sorted if cursors are needed 
     166 
     167#if exists("GenCurveFit") 
    164168 
    165169        // initialise the structure you will use 
     
    255259        //  /OPT=1 seems to make no difference whether it's used or not 
    256260         
    257 #if exists("GenCurveFit") 
    258261        // append the fit 
    259262        //do this only because GenCurveFit tries to append too quickly? 
     
    297300                 
    298301        while(0)         
    299 #endif 
    300302         
    301303//      NVAR V_chisq = V_chisq 
     
    314316         
    315317        return(V_chisq) 
     318#else 
     319        return(0) 
     320#endif   
    316321end 
Note: See TracChangeset for help on using the changeset viewer.