Changeset 325bc4a in sasview


Ignore:
Timestamp:
Jul 16, 2012 6:11:09 AM (12 years ago)
Author:
Robert Whitley <robert.whitley@…>
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:
dc9660d
Parents:
0da4eba
Message:

Refs 84. Fix build servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/c_models/GelFit.cpp

    r0da4eba r325bc4a  
    2727#include "GelFit.h" 
    2828 
    29 typedef struct { 
    30   double lScale; 
    31   double gScale; 
    32   double zeta; 
    33   double radius; 
    34   double scale; 
    35   double background; 
    36 } 
    37  
    38 GelFitModel :: GelFitModel() 
     29GelFitModel::GelFitModel() 
    3930{ 
    4031    lScale = Parameter(3.5); 
     
    4738} 
    4839 
    49 double GelFitModel :: operator()(double q)  
     40double GelFitModel::operator()(double q)  
    5041{ 
    5142    double dp[3]; 
     
    7465         
    7566        // Scattering Law 
    76         ///////////////////////////////ycal[j] = ((lScale/c) + (gScale*f) + bkgd); 
    77     return ((lScale()/c) + (gScale()*f) + background()); 
     67    double result((lScale()/c) + (gScale()*f) + background()); 
     68    return result; 
    7869} 
    7970 
     
    8576 * @return: function value 
    8677 */ 
    87 double GelFitModel :: operator()(double qx, double qy)  
     78double GelFitModel::operator()(double qx, double qy)  
    8879{ 
    8980  double q = sqrt(qx*qx + qy*qy); 
     
    9889 * @return: function value 
    9990 */ 
    100 double GelFitModel :: evaluate_rphi(double q, double phi)  
     91double GelFitModel::evaluate_rphi(double q, double phi)  
    10192{ 
    10293  double qx = q*cos(phi); 
     
    10899 * @return: effective radius value 
    109100 */ 
    110 double GelFitModel :: calculate_ER()  
     101double GelFitModel::calculate_ER()  
    111102{ 
    112103  //NOT implemented yet!!! 
    113104  return 0.0; 
    114105} 
    115 double GelFitModel :: calculate_VR()  
     106double GelFitModel::calculate_VR()  
    116107{ 
    117108  return 1.0; 
Note: See TracChangeset for help on using the changeset viewer.