Changeset d49c956 in sasview for sansmodels
- Timestamp:
- Jun 18, 2012 5:08:40 PM (13 years ago)
- 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:
- 20efe7b
- Parents:
- b0eeabf1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/c_models/cylinder.cpp
re08bd5b rd49c956 137 137 138 138 // q vector 139 q_z = 0 ;139 q_z = 0.0; 140 140 141 141 // Compute the angle btw vector q and the … … 145 145 // The following test should always pass 146 146 if (fabs(cos_val)>1.0) { 147 printf("cyl_ana_2D: Unexpected error: cos(alpha)>1\n"); 148 return 0; 147 printf("cyl_ana_2D: Unexpected error: |cos(alpha)=%g|>1\n", cos_val); 148 printf("cyl_ana_2D: at theta=%g and phi=%g.", theta, phi); 149 return 1.0; 149 150 } 150 151
Note: See TracChangeset
for help on using the changeset viewer.