Changeset 07e72e6 in sasmodels for sasmodels/models/hollow_cylinder.c


Ignore:
Timestamp:
Dec 23, 2015 10:14:44 AM (8 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:
d53d3cd
Parents:
cde11f0f
Message:

Can't use printf within c kernels under opencl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/hollow_cylinder.c

    r66ebdd6 r07e72e6  
    7070        // The following test should always pass 
    7171        if (fabs(cos_val)>1.0) { 
    72                 printf("core_shell_cylinder_analytical_2D: Unexpected error: cos(alpha)=%g\n", cos_val); 
    73                 return 0; 
     72                //printf("core_shell_cylinder_analytical_2D: Unexpected error: cos(alpha)=%g\n", cos_val); 
     73                return NAN; 
    7474        } 
    7575 
Note: See TracChangeset for help on using the changeset viewer.