Ignore:
Timestamp:
Nov 13, 2017 6:02:21 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a57ae07
Parents:
95d7c4f
Message:

hack around broken isfinite/isnan in tinycc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/calculator/c_extensions/sld2i.c

    r7e82256 ra1daf86  
    8181                sumj_du = cassign(0.0, 0.0); 
    8282                sumj_dd = cassign(0.0, 0.0); 
    83                 //printf ("%d ", i); 
     83                //printf("i: %d\n", i); 
    8484                //q = sqrt(qx[i]*qx[i] + qy[i]*qy[i]); // + qz[i]*qz[i]); 
    8585 
    8686                for(j=0; j<this->n_pix; j++){ 
     87                        //printf("j: %d\n", j); 
    8788                        if (this->sldn_val[j]!=0.0 
    8889                                ||this->mx_val[j]!=0.0 
     
    141142                I_out[i] *= (1.0E+8 / count); //in cm (unit) / number; //to be multiplied by vol_pix 
    142143        } 
    143         //printf ("count = %d %g %g %g %g\n", count, sldn_val[0],mx_val[0], my_val[0], mz_val[0]); 
     144        //printf("count = %d %g %g %g %g\n", count, this->sldn_val[0],this->mx_val[0], this->my_val[0], this->mz_val[0]); 
    144145} 
    145146/** 
     
    203204                I_out[i] *= (1.0E+8 / count); //in cm (unit) / number; //to be multiplied by vol_pix 
    204205        } 
    205         //printf ("count = %d %g %g %g %g\n", count, sldn_val[0],mx_val[0], my_val[0], mz_val[0]); 
     206        //printf("count = %d %g %g %g %g\n", count, sldn_val[0],mx_val[0], my_val[0], mz_val[0]); 
    206207} 
Note: See TracChangeset for help on using the changeset viewer.