Changeset 6137124 in sasmodels


Ignore:
Timestamp:
Feb 22, 2015 6:00:46 PM (10 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
664c8e7, 3a45c2c
Parents:
f734e7d
Message:

fix opencl warnings that showed up on mac

Location:
sasmodels
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    rf734e7d r6137124  
    433433    # Generate form_volume function from body only 
    434434    if info['form_volume'] is not None: 
     435        if volume_parameters: 
     436            vol_par_decl = ', '.join('double '+p for p in volume_parameters) 
     437        else: 
     438            vol_par_decl = 'void' 
    435439        defines.append(('VOLUME_PARAMETER_DECLARATIONS', 
    436                         ', '.join('double '+p for p in volume_parameters))) 
     440                        vol_par_decl)) 
    437441        fn = """\ 
    438442double form_volume(VOLUME_PARAMETER_DECLARATIONS); 
  • sasmodels/model_test.py

    rf734e7d r6137124  
    7272                test = ModelTestCase(test_name, model_definition, 
    7373                                     load_model_cl, tests) 
    74                 print "defining", test_name 
     74                #print "defining", test_name 
    7575                suite.addTest(test) 
    7676 
     
    8080                test = ModelTestCase(test_name, model_definition, 
    8181                                     load_model_dll, tests) 
    82                 print "defining", test_name 
     82                #print "defining", test_name 
    8383                suite.addTest(test) 
    8484 
     
    9696 
    9797    def runTest(self): 
    98         print "running", self.test_name 
     98        #print "running", self.test_name 
    9999        try: 
    100100            model = self.loader(self.definition) 
  • sasmodels/models/bcc.c

    rc95dc908 r6137124  
    112112 
    113113  const double Da = d_factor*dnn; 
    114   const double qDa_2 = q*q*Da*Da; 
    115114  const double s1 = dnn/sqrt(0.75); 
    116115 
  • sasmodels/models/fcc.c

    re7b3d7b r6137124  
    112112 
    113113  const double Da = d_factor*dnn; 
    114   const double qDa_2 = q*q*Da*Da; 
    115114  const double s1 = dnn/sqrt(0.75); 
    116115 
Note: See TracChangeset for help on using the changeset viewer.