Changeset 834 for sans/XOP_Dev/SANSAnalysis
- Timestamp:
- Jan 31, 2012 12:13:39 PM (11 years ago)
- Location:
- sans/XOP_Dev/SANSAnalysis
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/XOP_Dev/SANSAnalysis/XOP/Cylinder.c
r507 r834 15 15 16 16 Warning: 17 The call to WaveData() below returns a pointer to the middle17 The call to (float*)WaveData() below returns a pointer to the middle 18 18 of an unlocked Macintosh handle. In the unlikely event that your 19 19 calculations could cause memory to move, you should copy the coefficient … … 36 36 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 37 37 case NT_FP32: 38 fp= WaveData(p->waveHandle);39 SetNaN64(&p->result); 40 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 41 case NT_FP64: 42 dp= WaveData(p->waveHandle);38 fp= (float*)WaveData(p->waveHandle); 39 SetNaN64(&p->result); 40 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 41 case NT_FP64: 42 dp= (double*)WaveData(p->waveHandle); 43 43 p->result = CylinderForm(dp,q); 44 44 return 0; … … 56 56 57 57 Warning: 58 The call to WaveData() below returns a pointer to the middle58 The call to (float*)WaveData() below returns a pointer to the middle 59 59 of an unlocked Macintosh handle. In the unlikely event that your 60 60 calculations could cause memory to move, you should copy the coefficient … … 77 77 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 78 78 case NT_FP32: 79 fp= WaveData(p->waveHandle);80 SetNaN64(&p->result); 81 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 82 case NT_FP64: 83 dp= WaveData(p->waveHandle);79 fp= (float*)WaveData(p->waveHandle); 80 SetNaN64(&p->result); 81 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 82 case NT_FP64: 83 dp= (double*)WaveData(p->waveHandle); 84 84 p->result = EllipCyl76(dp,q); 85 85 return 0; … … 98 98 99 99 Warning: 100 The call to WaveData() below returns a pointer to the middle100 The call to (float*)WaveData() below returns a pointer to the middle 101 101 of an unlocked Macintosh handle. In the unlikely event that your 102 102 calculations could cause memory to move, you should copy the coefficient … … 119 119 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 120 120 case NT_FP32: 121 fp= WaveData(p->waveHandle);122 fp= WaveData(p->waveHandle);123 SetNaN64(&p->result); 124 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 125 case NT_FP64: 126 dp= WaveData(p->waveHandle);121 fp= (float*)WaveData(p->waveHandle); 122 fp= (float*)WaveData(p->waveHandle); 123 SetNaN64(&p->result); 124 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 125 case NT_FP64: 126 dp= (double*)WaveData(p->waveHandle); 127 127 128 128 p->result = EllipCyl20(dp,q); … … 141 141 142 142 Warning: 143 The call to WaveData() below returns a pointer to the middle143 The call to (float*)WaveData() below returns a pointer to the middle 144 144 of an unlocked Macintosh handle. In the unlikely event that your 145 145 calculations could cause memory to move, you should copy the coefficient … … 162 162 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 163 163 case NT_FP32: 164 fp= WaveData(p->waveHandle);165 SetNaN64(&p->result); 166 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 167 case NT_FP64: 168 dp= WaveData(p->waveHandle);164 fp= (float*)WaveData(p->waveHandle); 165 SetNaN64(&p->result); 166 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 167 case NT_FP64: 168 dp= (double*)WaveData(p->waveHandle); 169 169 170 170 p->result = TriaxialEllipsoid(dp,q); … … 184 184 185 185 Warning: 186 The call to WaveData() below returns a pointer to the middle186 The call to (float*)WaveData() below returns a pointer to the middle 187 187 of an unlocked Macintosh handle. In the unlikely event that your 188 188 calculations could cause memory to move, you should copy the coefficient … … 205 205 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 206 206 case NT_FP32: 207 fp= WaveData(p->waveHandle);208 SetNaN64(&p->result); 209 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 210 case NT_FP64: 211 dp= WaveData(p->waveHandle);207 fp= (float*)WaveData(p->waveHandle); 208 SetNaN64(&p->result); 209 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 210 case NT_FP64: 211 dp= (double*)WaveData(p->waveHandle); 212 212 213 213 p->result = Parallelepiped(dp,q); … … 227 227 228 228 Warning: 229 The call to WaveData() below returns a pointer to the middle229 The call to (float*)WaveData() below returns a pointer to the middle 230 230 of an unlocked Macintosh handle. In the unlikely event that your 231 231 calculations could cause memory to move, you should copy the coefficient … … 248 248 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 249 249 case NT_FP32: 250 fp= WaveData(p->waveHandle);251 SetNaN64(&p->result); 252 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 253 case NT_FP64: 254 dp= WaveData(p->waveHandle);250 fp= (float*)WaveData(p->waveHandle); 251 SetNaN64(&p->result); 252 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 253 case NT_FP64: 254 dp= (double*)WaveData(p->waveHandle); 255 255 256 256 p->result = HollowCylinder(dp,q); … … 270 270 271 271 Warning: 272 The call to WaveData() below returns a pointer to the middle272 The call to (float*)WaveData() below returns a pointer to the middle 273 273 of an unlocked Macintosh handle. In the unlikely event that your 274 274 calculations could cause memory to move, you should copy the coefficient … … 291 291 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 292 292 case NT_FP32: 293 fp= WaveData(p->waveHandle);294 SetNaN64(&p->result); 295 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 296 case NT_FP64: 297 dp= WaveData(p->waveHandle);293 fp= (float*)WaveData(p->waveHandle); 294 SetNaN64(&p->result); 295 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 296 case NT_FP64: 297 dp= (double*)WaveData(p->waveHandle); 298 298 299 299 p->result = EllipsoidForm(dp,q); … … 329 329 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 330 330 case NT_FP32: 331 fp= WaveData(p->waveHandle);332 SetNaN64(&p->result); 333 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 334 case NT_FP64: 335 dp= WaveData(p->waveHandle);331 fp= (float*)WaveData(p->waveHandle); 332 SetNaN64(&p->result); 333 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 334 case NT_FP64: 335 dp= (double*)WaveData(p->waveHandle); 336 336 337 337 p->result = Cyl_PolyRadius(dp,q); … … 365 365 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 366 366 case NT_FP32: 367 fp= WaveData(p->waveHandle);368 SetNaN64(&p->result); 369 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 370 case NT_FP64: 371 dp= WaveData(p->waveHandle);367 fp= (float*)WaveData(p->waveHandle); 368 SetNaN64(&p->result); 369 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 370 case NT_FP64: 371 dp= (double*)WaveData(p->waveHandle); 372 372 373 373 p->result = Cyl_PolyLength(dp,q); … … 403 403 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 404 404 case NT_FP32: 405 fp= WaveData(p->waveHandle);406 SetNaN64(&p->result); 407 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 408 case NT_FP64: 409 dp= WaveData(p->waveHandle);405 fp= (float*)WaveData(p->waveHandle); 406 SetNaN64(&p->result); 407 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 408 case NT_FP64: 409 dp= (double*)WaveData(p->waveHandle); 410 410 411 411 p->result = CoreShellCylinder(dp,q); … … 440 440 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 441 441 case NT_FP32: 442 fp= WaveData(p->waveHandle);443 SetNaN64(&p->result); 444 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 445 case NT_FP64: 446 dp= WaveData(p->waveHandle);442 fp= (float*)WaveData(p->waveHandle); 443 SetNaN64(&p->result); 444 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 445 case NT_FP64: 446 dp= (double*)WaveData(p->waveHandle); 447 447 448 448 p->result = PolyCoShCylinder(dp,q); … … 475 475 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 476 476 case NT_FP32: 477 fp= WaveData(p->waveHandle);478 SetNaN64(&p->result); 479 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 480 case NT_FP64: 481 dp= WaveData(p->waveHandle);477 fp= (float*)WaveData(p->waveHandle); 478 SetNaN64(&p->result); 479 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 480 case NT_FP64: 481 dp= (double*)WaveData(p->waveHandle); 482 482 483 483 p->result = OblateForm(dp,q); … … 511 511 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 512 512 case NT_FP32: 513 fp= WaveData(p->waveHandle);514 SetNaN64(&p->result); 515 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 516 case NT_FP64: 517 dp= WaveData(p->waveHandle);513 fp= (float*)WaveData(p->waveHandle); 514 SetNaN64(&p->result); 515 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 516 case NT_FP64: 517 dp= (double*)WaveData(p->waveHandle); 518 518 519 519 p->result = ProlateForm(dp,q); … … 547 547 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 548 548 case NT_FP32: 549 fp= WaveData(p->waveHandle);550 SetNaN64(&p->result); 551 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 552 case NT_FP64: 553 dp= WaveData(p->waveHandle);549 fp= (float*)WaveData(p->waveHandle); 550 SetNaN64(&p->result); 551 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 552 case NT_FP64: 553 dp= (double*)WaveData(p->waveHandle); 554 554 p->result = StackedDiscs(dp,q); 555 555 return 0; … … 581 581 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 582 582 case NT_FP32: 583 fp= WaveData(p->waveHandle);584 SetNaN64(&p->result); 585 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 586 case NT_FP64: 587 dp= WaveData(p->waveHandle);583 fp= (float*)WaveData(p->waveHandle); 584 SetNaN64(&p->result); 585 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 586 case NT_FP64: 587 dp= (double*)WaveData(p->waveHandle); 588 588 p->result = LamellarFF(dp,q); 589 589 return 0; … … 614 614 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 615 615 case NT_FP32: 616 fp= WaveData(p->waveHandle);617 SetNaN64(&p->result); 618 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 619 case NT_FP64: 620 dp= WaveData(p->waveHandle);616 fp= (float*)WaveData(p->waveHandle); 617 SetNaN64(&p->result); 618 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 619 case NT_FP64: 620 dp= (double*)WaveData(p->waveHandle); 621 621 p->result = LamellarPS(dp,q); 622 622 return 0; … … 648 648 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 649 649 case NT_FP32: 650 fp= WaveData(p->waveHandle);651 SetNaN64(&p->result); 652 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 653 case NT_FP64: 654 dp= WaveData(p->waveHandle);650 fp= (float*)WaveData(p->waveHandle); 651 SetNaN64(&p->result); 652 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 653 case NT_FP64: 654 dp= (double*)WaveData(p->waveHandle); 655 655 p->result = LamellarPS_HG(dp,q); 656 656 return 0; … … 682 682 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 683 683 case NT_FP32: 684 fp= WaveData(p->waveHandle);685 SetNaN64(&p->result); 686 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 687 case NT_FP64: 688 dp= WaveData(p->waveHandle);684 fp= (float*)WaveData(p->waveHandle); 685 SetNaN64(&p->result); 686 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 687 case NT_FP64: 688 dp= (double*)WaveData(p->waveHandle); 689 689 p->result = LamellarFF_HG(dp,q); 690 690 return 0; … … 716 716 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 717 717 case NT_FP32: 718 fp= WaveData(p->waveHandle);719 SetNaN64(&p->result); 720 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 721 case NT_FP64: 722 dp= WaveData(p->waveHandle);718 fp= (float*)WaveData(p->waveHandle); 719 SetNaN64(&p->result); 720 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 721 case NT_FP64: 722 dp= (double*)WaveData(p->waveHandle); 723 723 p->result = FlexExclVolCyl(dp,q); 724 724 return 0; … … 750 750 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 751 751 case NT_FP32: 752 fp= WaveData(p->waveHandle);753 SetNaN64(&p->result); 754 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 755 case NT_FP64: 756 dp= WaveData(p->waveHandle);752 fp= (float*)WaveData(p->waveHandle); 753 SetNaN64(&p->result); 754 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 755 case NT_FP64: 756 dp= (double*)WaveData(p->waveHandle); 757 757 p->result = FlexCyl_Ellip(dp,q); 758 758 return 0; … … 784 784 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 785 785 case NT_FP32: 786 fp= WaveData(p->waveHandle);787 SetNaN64(&p->result); 788 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 789 case NT_FP64: 790 dp= WaveData(p->waveHandle);786 fp= (float*)WaveData(p->waveHandle); 787 SetNaN64(&p->result); 788 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 789 case NT_FP64: 790 dp= (double*)WaveData(p->waveHandle); 791 791 p->result = FlexCyl_PolyLen(dp,q); 792 792 return 0; … … 818 818 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 819 819 case NT_FP32: 820 fp= WaveData(p->waveHandle);821 SetNaN64(&p->result); 822 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 823 case NT_FP64: 824 dp= WaveData(p->waveHandle);820 fp= (float*)WaveData(p->waveHandle); 821 SetNaN64(&p->result); 822 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 823 case NT_FP64: 824 dp= (double*)WaveData(p->waveHandle); 825 825 p->result = FlexCyl_PolyRad(dp,q); 826 826 return 0; … … 851 851 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 852 852 case NT_FP32: 853 fp= WaveData(p->waveHandle);854 SetNaN64(&p->result); 855 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 856 case NT_FP64: 857 dp= WaveData(p->waveHandle);853 fp= (float*)WaveData(p->waveHandle); 854 SetNaN64(&p->result); 855 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 856 case NT_FP64: 857 dp= (double*)WaveData(p->waveHandle); 858 858 p->result = Spherocylinder(dp,q); 859 859 return 0; … … 884 884 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 885 885 case NT_FP32: 886 fp= WaveData(p->waveHandle);887 SetNaN64(&p->result); 888 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 889 case NT_FP64: 890 dp= WaveData(p->waveHandle);886 fp= (float*)WaveData(p->waveHandle); 887 SetNaN64(&p->result); 888 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 889 case NT_FP64: 890 dp= (double*)WaveData(p->waveHandle); 891 891 p->result = ConvexLens(dp,q); 892 892 return 0; … … 917 917 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 918 918 case NT_FP32: 919 fp= WaveData(p->waveHandle);920 SetNaN64(&p->result); 921 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 922 case NT_FP64: 923 dp= WaveData(p->waveHandle);919 fp= (float*)WaveData(p->waveHandle); 920 SetNaN64(&p->result); 921 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 922 case NT_FP64: 923 dp= (double*)WaveData(p->waveHandle); 924 924 p->result = Dumbbell(dp,q); 925 925 return 0; … … 950 950 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 951 951 case NT_FP32: 952 fp= WaveData(p->waveHandle);953 SetNaN64(&p->result); 954 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 955 case NT_FP64: 956 dp= WaveData(p->waveHandle);952 fp= (float*)WaveData(p->waveHandle); 953 SetNaN64(&p->result); 954 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 955 case NT_FP64: 956 dp= (double*)WaveData(p->waveHandle); 957 957 p->result = CappedCylinder(dp,q); 958 958 return 0; … … 983 983 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 984 984 case NT_FP32: 985 fp= WaveData(p->waveHandle);986 SetNaN64(&p->result); 987 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 988 case NT_FP64: 989 dp= WaveData(p->waveHandle);985 fp= (float*)WaveData(p->waveHandle); 986 SetNaN64(&p->result); 987 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 988 case NT_FP64: 989 dp= (double*)WaveData(p->waveHandle); 990 990 p->result = Barbell(dp,q); 991 991 return 0; … … 1016 1016 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 1017 1017 case NT_FP32: 1018 fp= WaveData(p->waveHandle);1019 SetNaN64(&p->result); 1020 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1021 case NT_FP64: 1022 dp= WaveData(p->waveHandle);1018 fp= (float*)WaveData(p->waveHandle); 1019 SetNaN64(&p->result); 1020 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1021 case NT_FP64: 1022 dp= (double*)WaveData(p->waveHandle); 1023 1023 p->result = Lamellar_ParaCrystal(dp,q); 1024 1024 return 0; … … 1048 1048 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 1049 1049 case NT_FP32: 1050 fp= WaveData(p->waveHandle);1051 SetNaN64(&p->result); 1052 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1053 case NT_FP64: 1054 dp= WaveData(p->waveHandle);1050 fp= (float*)WaveData(p->waveHandle); 1051 SetNaN64(&p->result); 1052 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1053 case NT_FP64: 1054 dp= (double*)WaveData(p->waveHandle); 1055 1055 p->result = PolyCoreBicelle(dp,q); 1056 1056 return 0; … … 1077 1077 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 1078 1078 case NT_FP32: 1079 fp= WaveData(p->waveHandle);1080 SetNaN64(&p->result); 1081 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1082 case NT_FP64: 1083 dp= WaveData(p->waveHandle);1079 fp= (float*)WaveData(p->waveHandle); 1080 SetNaN64(&p->result); 1081 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 1082 case NT_FP64: 1083 dp= (double*)WaveData(p->waveHandle); 1084 1084 p->result = CSParallelepiped(dp,q); 1085 1085 return 0; -
sans/XOP_Dev/SANSAnalysis/XOP/Func2D.c
r235 r834 46 46 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 47 47 case NT_FP32: 48 fp= WaveData(p->waveHandle);49 SetNaN64(&p->result); 50 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 51 case NT_FP64: 52 dp= WaveData(p->waveHandle);48 fp= (float*)WaveData(p->waveHandle); 49 SetNaN64(&p->result); 50 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 51 case NT_FP64: 52 dp= (double*)WaveData(p->waveHandle); 53 53 54 54 // for(i=0; i<11; i++) { … … 106 106 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 107 107 case NT_FP32: 108 fp= WaveData(p->waveHandle);109 SetNaN64(&p->result); 110 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 111 case NT_FP64: 112 dp= WaveData(p->waveHandle);113 par_values = WaveData(p->par_values);114 weight_values = WaveData(p->weight_values);108 fp= (float*)WaveData(p->waveHandle); 109 SetNaN64(&p->result); 110 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 111 case NT_FP64: 112 dp= (double*)WaveData(p->waveHandle); 113 par_values = (double*)WaveData(p->par_values); 114 weight_values = (double*)WaveData(p->weight_values); 115 115 116 116 for(i=0; i<13; i++) { … … 186 186 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 187 187 case NT_FP32: 188 fp= WaveData(p->waveHandle);189 SetNaN64(&p->result); 190 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 191 case NT_FP64: 192 dp= WaveData(p->waveHandle);188 fp= (float*)WaveData(p->waveHandle); 189 SetNaN64(&p->result); 190 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 191 case NT_FP64: 192 dp= (double*)WaveData(p->waveHandle); 193 193 194 194 for(i=0; i<15; i++) { … … 235 235 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 236 236 case NT_FP32: 237 fp= WaveData(p->waveHandle);238 SetNaN64(&p->result); 239 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 240 case NT_FP64: 241 dp= WaveData(p->waveHandle);242 par_values = WaveData(p->par_values);243 weight_values = WaveData(p->weight_values);237 fp= (float*)WaveData(p->waveHandle); 238 SetNaN64(&p->result); 239 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 240 case NT_FP64: 241 dp= (double*)WaveData(p->waveHandle); 242 par_values = (double*)WaveData(p->par_values); 243 weight_values = (double*)WaveData(p->weight_values); 244 244 245 245 for(i=0; i<17; i++) { … … 314 314 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 315 315 case NT_FP32: 316 fp= WaveData(p->waveHandle);317 SetNaN64(&p->result); 318 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 319 case NT_FP64: 320 dp= WaveData(p->waveHandle);316 fp= (float*)WaveData(p->waveHandle); 317 SetNaN64(&p->result); 318 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 319 case NT_FP64: 320 dp= (double*)WaveData(p->waveHandle); 321 321 322 322 // for(i=0; i<12; i++) { … … 376 376 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 377 377 case NT_FP32: 378 fp= WaveData(p->waveHandle);379 SetNaN64(&p->result); 380 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 381 case NT_FP64: 382 dp= WaveData(p->waveHandle);383 par_values = WaveData(p->par_values);384 weight_values = WaveData(p->weight_values);378 fp= (float*)WaveData(p->waveHandle); 379 SetNaN64(&p->result); 380 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 381 case NT_FP64: 382 dp= (double*)WaveData(p->waveHandle); 383 par_values = (double*)WaveData(p->par_values); 384 weight_values = (double*)WaveData(p->weight_values); 385 385 386 386 for(i=0; i<14; i++) { … … 455 455 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 456 456 case NT_FP32: 457 fp= WaveData(p->waveHandle);458 SetNaN64(&p->result); 459 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 460 case NT_FP64: 461 dp= WaveData(p->waveHandle);457 fp= (float*)WaveData(p->waveHandle); 458 SetNaN64(&p->result); 459 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 460 case NT_FP64: 461 dp= (double*)WaveData(p->waveHandle); 462 462 463 463 // for(i=0; i<14; i++) { … … 520 520 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 521 521 case NT_FP32: 522 fp= WaveData(p->waveHandle);523 SetNaN64(&p->result); 524 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 525 case NT_FP64: 526 dp= WaveData(p->waveHandle);527 par_values = WaveData(p->par_values);528 weight_values = WaveData(p->weight_values);522 fp= (float*)WaveData(p->waveHandle); 523 SetNaN64(&p->result); 524 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 525 case NT_FP64: 526 dp= (double*)WaveData(p->waveHandle); 527 par_values = (double*)WaveData(p->par_values); 528 weight_values = (double*)WaveData(p->weight_values); 529 529 530 530 for(i=0; i<16; i++) { … … 607 607 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 608 608 case NT_FP32: 609 fp= WaveData(p->waveHandle);610 SetNaN64(&p->result); 611 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 612 case NT_FP64: 613 dp= WaveData(p->waveHandle);609 fp= (float*)WaveData(p->waveHandle); 610 SetNaN64(&p->result); 611 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 612 case NT_FP64: 613 dp= (double*)WaveData(p->waveHandle); 614 614 615 615 for(i=0; i<5; i++) { -
sans/XOP_Dev/SANSAnalysis/XOP/ResolutionSmearing.c
r245 r834 332 332 i_sigq = p->i_sigq; 333 333 334 dp = WaveData(p->waveHandle);334 dp = (double*)WaveData(p->waveHandle); 335 335 q = p->x; 336 336 -
sans/XOP_Dev/SANSAnalysis/XOP/ResolutionSmearing.h
r188 r834 3 3 */ 4 4 5 # include "XOPStructureAlignmentTwoByte.h"5 #pragma pack(2) 6 6 7 7 /* Prototypes */ … … 30 30 }PassParams, *PassParamsPtr; 31 31 32 # include "XOPStructureAlignmentReset.h"32 #pragma pack() 33 33 34 34 /* IGOR Fit Functions */ -
sans/XOP_Dev/SANSAnalysis/XOP/SANSAnalysis.c
r756 r834 362 362 main() does any necessary initialization and then sets the XOPEntry field of the 363 363 ioRecHandle to the address to be called for future messages. 364 365 updated for TK6 30JAN2012 SRK 364 366 */ 365 HOST_IMPORT void367 HOST_IMPORT int // was void 366 368 main(IORecHandle ioRecHandle) 367 369 { … … 371 373 if (igorVersion < 600) { // checks required for ThreadSafe declarations 372 374 SetXOPResult(IGOR_OBSOLETE); 375 return EXIT_FAILURE; // added for TK6 373 376 } 374 else { 375 if (igorVersion >= 700) 376 SetXOPResult(IGOR_OBSOLETE); 377 else 378 SetXOPResult(0L); 379 } 377 378 SetXOPResult(0); 379 return EXIT_SUCCESS; // added for TK6 380 381 // else { 382 // if (igorVersion >= 700) 383 // SetXOPResult(IGOR_OBSOLETE); 384 // else 385 // SetXOPResult(0L); 386 // } 387 380 388 } 381 389 -
sans/XOP_Dev/SANSAnalysis/XOP/SANSAnalysis.h
r231 r834 5 5 6 6 /* Prototypes */ 7 HOST_IMPORT void main(IORecHandle ioRecHandle); 7 // for TK6 8 HOST_IMPORT int main(IORecHandle ioRecHandle); 8 9 9 10 // Custom error codes 10 #define REQUIRES_IGOR_200 1 + FIRST_XOP_ERR11 //#define REQUIRES_IGOR_200 1 + FIRST_XOP_ERR 11 12 #define NON_EXISTENT_WAVE 2 + FIRST_XOP_ERR 12 13 #define REQUIRES_SP_OR_DP_WAVE 3 + FIRST_XOP_ERR 13 14 14 15 15 # include "XOPStructureAlignmentTwoByte.h"16 #pragma pack(2) 16 17 17 18 // Fit function parameter structure … … 43 44 }FitParams2DWeight, *FitParams2DWeightPtr; 44 45 45 #include "XOPStructureAlignmentReset.h" 46 #pragma pack() 47 -
sans/XOP_Dev/SANSAnalysis/XOP/Sphere.c
r592 r834 30 30 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 31 31 case NT_FP32: 32 fp= WaveData(p->waveHandle);33 SetNaN64(&p->result); 34 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 35 case NT_FP64: 36 dp= WaveData(p->waveHandle);32 fp= (float*)WaveData(p->waveHandle); 33 SetNaN64(&p->result); 34 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 35 case NT_FP64: 36 dp= (double*)WaveData(p->waveHandle); 37 37 p->result = SphereForm(dp,q); 38 38 return 0; … … 62 62 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 63 63 case NT_FP32: 64 fp= WaveData(p->waveHandle);65 SetNaN64(&p->result); 66 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 67 case NT_FP64: 68 dp= WaveData(p->waveHandle);64 fp= (float*)WaveData(p->waveHandle); 65 SetNaN64(&p->result); 66 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 67 case NT_FP64: 68 dp= (double*)WaveData(p->waveHandle); 69 69 p->result = CoreShellForm(dp,q); 70 70 return 0; … … 94 94 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 95 95 case NT_FP32: 96 fp= WaveData(p->waveHandle);97 SetNaN64(&p->result); 98 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 99 case NT_FP64: 100 dp= WaveData(p->waveHandle);96 fp= (float*)WaveData(p->waveHandle); 97 SetNaN64(&p->result); 98 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 99 case NT_FP64: 100 dp= (double*)WaveData(p->waveHandle); 101 101 p->result = VesicleForm(dp,q); 102 102 return 0; … … 127 127 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 128 128 case NT_FP32: 129 fp= WaveData(p->waveHandle);130 SetNaN64(&p->result); 131 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 132 case NT_FP64: 133 dp= WaveData(p->waveHandle);129 fp= (float*)WaveData(p->waveHandle); 130 SetNaN64(&p->result); 131 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 132 case NT_FP64: 133 dp= (double*)WaveData(p->waveHandle); 134 134 p->result = PolyCoreForm(dp,q); 135 135 return 0; … … 161 161 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 162 162 case NT_FP32: 163 fp= WaveData(p->waveHandle);164 SetNaN64(&p->result); 165 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 166 case NT_FP64: 167 dp= WaveData(p->waveHandle);163 fp= (float*)WaveData(p->waveHandle); 164 SetNaN64(&p->result); 165 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 166 case NT_FP64: 167 dp= (double*)WaveData(p->waveHandle); 168 168 p->result = PolyHardSphereIntensity(dp,q); 169 169 return 0; … … 194 194 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 195 195 case NT_FP32: 196 fp= WaveData(p->waveHandle);197 SetNaN64(&p->result); 198 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 199 case NT_FP64: 200 dp= WaveData(p->waveHandle);196 fp= (float*)WaveData(p->waveHandle); 197 SetNaN64(&p->result); 198 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 199 case NT_FP64: 200 dp= (double*)WaveData(p->waveHandle); 201 201 p->result = BimodalSchulzSpheres(dp,q); 202 202 return 0; … … 227 227 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 228 228 case NT_FP32: 229 fp= WaveData(p->waveHandle);230 SetNaN64(&p->result); 231 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 232 case NT_FP64: 233 dp= WaveData(p->waveHandle);229 fp= (float*)WaveData(p->waveHandle); 230 SetNaN64(&p->result); 231 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 232 case NT_FP64: 233 dp= (double*)WaveData(p->waveHandle); 234 234 p->result = SchulzSpheres(dp,q); 235 235 return 0; … … 261 261 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 262 262 case NT_FP32: 263 fp= WaveData(p->waveHandle);264 SetNaN64(&p->result); 265 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 266 case NT_FP64: 267 dp= WaveData(p->waveHandle);263 fp= (float*)WaveData(p->waveHandle); 264 SetNaN64(&p->result); 265 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 266 case NT_FP64: 267 dp= (double*)WaveData(p->waveHandle); 268 268 p->result = PolyRectSpheres(dp,q); 269 269 return 0; … … 294 294 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 295 295 case NT_FP32: 296 fp= WaveData(p->waveHandle);297 SetNaN64(&p->result); 298 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 299 case NT_FP64: 300 dp= WaveData(p->waveHandle);296 fp= (float*)WaveData(p->waveHandle); 297 SetNaN64(&p->result); 298 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 299 case NT_FP64: 300 dp= (double*)WaveData(p->waveHandle); 301 301 p->result = GaussPolySphere(dp,q); 302 302 return 0; … … 327 327 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 328 328 case NT_FP32: 329 fp= WaveData(p->waveHandle);330 SetNaN64(&p->result); 331 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 332 case NT_FP64: 333 dp= WaveData(p->waveHandle);329 fp= (float*)WaveData(p->waveHandle); 330 SetNaN64(&p->result); 331 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 332 case NT_FP64: 333 dp= (double*)WaveData(p->waveHandle); 334 334 p->result = LogNormalPolySphere(dp,q); 335 335 return 0; … … 361 361 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 362 362 case NT_FP32: 363 fp= WaveData(p->waveHandle);364 SetNaN64(&p->result); 365 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 366 case NT_FP64: 367 dp= WaveData(p->waveHandle);363 fp= (float*)WaveData(p->waveHandle); 364 SetNaN64(&p->result); 365 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 366 case NT_FP64: 367 dp= (double*)WaveData(p->waveHandle); 368 368 p->result = PolyCoreShellRatio(dp,q); 369 369 return 0; … … 404 404 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 405 405 case NT_FP32: 406 fp= WaveData(p->waveHandle);407 SetNaN64(&p->result); 408 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 409 case NT_FP64: 410 dp= WaveData(p->waveHandle);406 fp= (float*)WaveData(p->waveHandle); 407 SetNaN64(&p->result); 408 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 409 case NT_FP64: 410 dp= (double*)WaveData(p->waveHandle); 411 411 p->result = BinaryHS(dp,q); 412 412 return 0; … … 434 434 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 435 435 case NT_FP32: 436 fp= WaveData(p->waveHandle);437 SetNaN64(&p->result); 438 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 439 case NT_FP64: 440 dp= WaveData(p->waveHandle);436 fp= (float*)WaveData(p->waveHandle); 437 SetNaN64(&p->result); 438 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 439 case NT_FP64: 440 dp= (double*)WaveData(p->waveHandle); 441 441 p->result = BinaryHS_PSF11(dp,q); 442 442 return 0; … … 464 464 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 465 465 case NT_FP32: 466 fp= WaveData(p->waveHandle);467 SetNaN64(&p->result); 468 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 469 case NT_FP64: 470 dp= WaveData(p->waveHandle);466 fp= (float*)WaveData(p->waveHandle); 467 SetNaN64(&p->result); 468 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 469 case NT_FP64: 470 dp= (double*)WaveData(p->waveHandle); 471 471 p->result = BinaryHS_PSF12(dp,q); 472 472 return 0; … … 495 495 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 496 496 case NT_FP32: 497 fp= WaveData(p->waveHandle);498 SetNaN64(&p->result); 499 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 500 case NT_FP64: 501 dp= WaveData(p->waveHandle);497 fp= (float*)WaveData(p->waveHandle); 498 SetNaN64(&p->result); 499 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 500 case NT_FP64: 501 dp= (double*)WaveData(p->waveHandle); 502 502 p->result = BinaryHS_PSF22(dp,q); 503 503 return 0; … … 520 520 521 521 Warning: 522 The call to WaveData() below returns a pointer to the middle522 The call to (float*)WaveData() below returns a pointer to the middle 523 523 of an unlocked Macintosh handle. In the unlikely event that your 524 524 calculations could cause memory to move, you should copy the coefficient … … 541 541 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 542 542 case NT_FP32: 543 fp= WaveData(p->waveHandle);544 SetNaN64(&p->result); 545 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 546 case NT_FP64: 547 dp= WaveData(p->waveHandle);543 fp= (float*)WaveData(p->waveHandle); 544 SetNaN64(&p->result); 545 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 546 case NT_FP64: 547 dp= (double*)WaveData(p->waveHandle); 548 548 p->result = MultiShell(dp,q); 549 549 return 0; … … 568 568 // 569 569 Warning: 570 The call to WaveData() below returns a pointer to the middle570 The call to (float*)WaveData() below returns a pointer to the middle 571 571 of an unlocked Macintosh handle. In the unlikely event that your 572 572 calculations could cause memory to move, you should copy the coefficient … … 589 589 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 590 590 case NT_FP32: 591 fp= WaveData(p->waveHandle);592 SetNaN64(&p->result); 593 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 594 case NT_FP64: 595 dp= WaveData(p->waveHandle);591 fp= (float*)WaveData(p->waveHandle); 592 SetNaN64(&p->result); 593 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 594 case NT_FP64: 595 dp= (double*)WaveData(p->waveHandle); 596 596 p->result = PolyMultiShell(dp,q); 597 597 return 0; … … 621 621 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 622 622 case NT_FP32: 623 fp= WaveData(p->waveHandle);624 SetNaN64(&p->result); 625 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 626 case NT_FP64: 627 dp= WaveData(p->waveHandle);623 fp= (float*)WaveData(p->waveHandle); 624 SetNaN64(&p->result); 625 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 626 case NT_FP64: 627 dp= (double*)WaveData(p->waveHandle); 628 628 p->result = OneShell(dp,q); 629 629 return 0; … … 651 651 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 652 652 case NT_FP32: 653 fp= WaveData(p->waveHandle);654 SetNaN64(&p->result); 655 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 656 case NT_FP64: 657 dp= WaveData(p->waveHandle);653 fp= (float*)WaveData(p->waveHandle); 654 SetNaN64(&p->result); 655 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 656 case NT_FP64: 657 dp= (double*)WaveData(p->waveHandle); 658 658 p->result = TwoShell(dp,q); 659 659 return 0; … … 681 681 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 682 682 case NT_FP32: 683 fp= WaveData(p->waveHandle);684 SetNaN64(&p->result); 685 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 686 case NT_FP64: 687 dp= WaveData(p->waveHandle);683 fp= (float*)WaveData(p->waveHandle); 684 SetNaN64(&p->result); 685 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 686 case NT_FP64: 687 dp= (double*)WaveData(p->waveHandle); 688 688 p->result = ThreeShell(dp,q); 689 689 return 0; … … 711 711 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 712 712 case NT_FP32: 713 fp= WaveData(p->waveHandle);714 SetNaN64(&p->result); 715 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 716 case NT_FP64: 717 dp= WaveData(p->waveHandle);713 fp= (float*)WaveData(p->waveHandle); 714 SetNaN64(&p->result); 715 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 716 case NT_FP64: 717 dp= (double*)WaveData(p->waveHandle); 718 718 p->result = FourShell(dp,q); 719 719 return 0; … … 743 743 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 744 744 case NT_FP32: 745 fp= WaveData(p->waveHandle);746 SetNaN64(&p->result); 747 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 748 case NT_FP64: 749 dp= WaveData(p->waveHandle);745 fp= (float*)WaveData(p->waveHandle); 746 SetNaN64(&p->result); 747 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 748 case NT_FP64: 749 dp= (double*)WaveData(p->waveHandle); 750 750 p->result = PolyOneShell(dp,q); 751 751 return 0; … … 773 773 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 774 774 case NT_FP32: 775 fp= WaveData(p->waveHandle);776 SetNaN64(&p->result); 777 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 778 case NT_FP64: 779 dp= WaveData(p->waveHandle);775 fp= (float*)WaveData(p->waveHandle); 776 SetNaN64(&p->result); 777 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 778 case NT_FP64: 779 dp= (double*)WaveData(p->waveHandle); 780 780 p->result = PolyTwoShell(dp,q); 781 781 return 0; … … 803 803 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 804 804 case NT_FP32: 805 fp= WaveData(p->waveHandle);806 SetNaN64(&p->result); 807 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 808 case NT_FP64: 809 dp= WaveData(p->waveHandle);805 fp= (float*)WaveData(p->waveHandle); 806 SetNaN64(&p->result); 807 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 808 case NT_FP64: 809 dp= (double*)WaveData(p->waveHandle); 810 810 p->result = PolyThreeShell(dp,q); 811 811 return 0; … … 833 833 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 834 834 case NT_FP32: 835 fp= WaveData(p->waveHandle);836 SetNaN64(&p->result); 837 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 838 case NT_FP64: 839 dp= WaveData(p->waveHandle);835 fp= (float*)WaveData(p->waveHandle); 836 SetNaN64(&p->result); 837 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 838 case NT_FP64: 839 dp= (double*)WaveData(p->waveHandle); 840 840 p->result = PolyFourShell(dp,q); 841 841 return 0; … … 864 864 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 865 865 case NT_FP32: 866 fp= WaveData(p->waveHandle);867 SetNaN64(&p->result); 868 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 869 case NT_FP64: 870 dp= WaveData(p->waveHandle);866 fp= (float*)WaveData(p->waveHandle); 867 SetNaN64(&p->result); 868 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 869 case NT_FP64: 870 dp= (double*)WaveData(p->waveHandle); 871 871 p->result = BCC_ParaCrystal(dp,q); 872 872 return 0; … … 895 895 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 896 896 case NT_FP32: 897 fp= WaveData(p->waveHandle);898 SetNaN64(&p->result); 899 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 900 case NT_FP64: 901 dp= WaveData(p->waveHandle);897 fp= (float*)WaveData(p->waveHandle); 898 SetNaN64(&p->result); 899 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 900 case NT_FP64: 901 dp= (double*)WaveData(p->waveHandle); 902 902 p->result = FCC_ParaCrystal(dp,q); 903 903 return 0; … … 926 926 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 927 927 case NT_FP32: 928 fp= WaveData(p->waveHandle);929 SetNaN64(&p->result); 930 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 931 case NT_FP64: 932 dp= WaveData(p->waveHandle);928 fp= (float*)WaveData(p->waveHandle); 929 SetNaN64(&p->result); 930 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 931 case NT_FP64: 932 dp= (double*)WaveData(p->waveHandle); 933 933 p->result = SC_ParaCrystal(dp,q); 934 934 return 0; … … 956 956 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 957 957 case NT_FP32: 958 fp= WaveData(p->waveHandle);959 SetNaN64(&p->result); 960 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 961 case NT_FP64: 962 dp= WaveData(p->waveHandle);958 fp= (float*)WaveData(p->waveHandle); 959 SetNaN64(&p->result); 960 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 961 case NT_FP64: 962 dp= (double*)WaveData(p->waveHandle); 963 963 p->result = FuzzySpheres(dp,q); 964 964 return 0; -
sans/XOP_Dev/SANSAnalysis/XOP/StructureFactor.c
r823 r834 32 32 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 33 33 case NT_FP32: 34 fp= WaveData(p->waveHandle);34 fp= (float*)WaveData(p->waveHandle); 35 35 SetNaN64(&p->result); 36 36 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 37 37 case NT_FP64: 38 dp= WaveData(p->waveHandle);38 dp= (double*)WaveData(p->waveHandle); 39 39 p->result = HardSphereStruct(dp,q); 40 40 return 0; … … 64 64 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 65 65 case NT_FP32: 66 fp= WaveData(p->waveHandle);66 fp= (float*)WaveData(p->waveHandle); 67 67 SetNaN64(&p->result); 68 68 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 69 69 case NT_FP64: 70 dp= WaveData(p->waveHandle);70 dp= (double*)WaveData(p->waveHandle); 71 71 p->result = StickyHS_Struct(dp,q); 72 72 return 0; … … 102 102 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 103 103 case NT_FP32: 104 fp= WaveData(p->waveHandle);104 fp= (float*)WaveData(p->waveHandle); 105 105 SetNaN64(&p->result); 106 106 XOPNotice("I think it's single precision\r"); 107 107 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 108 108 case NT_FP64: 109 dp= WaveData(p->waveHandle);109 dp= (double*)WaveData(p->waveHandle); 110 110 p->result = SquareWellStruct(dp,q); 111 111 return 0; … … 137 137 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 138 138 case NT_FP32: 139 fp= WaveData(p->waveHandle);139 fp= (float*)WaveData(p->waveHandle); 140 140 SetNaN64(&p->result); 141 141 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 142 142 case NT_FP64: 143 dp= WaveData(p->waveHandle);143 dp= (double*)WaveData(p->waveHandle); 144 144 p->result = HayterPenfoldMSA(dp,q); 145 145 return 0; … … 221 221 222 222 //get the wave data 223 sq = WaveData(p->SQHandle);224 qw = WaveData(p->QHandle);225 cw = WaveData(p->CoefHandle);223 sq = (double*)WaveData(p->SQHandle); 224 qw = (double*)WaveData(p->QHandle); 225 cw = (double*)WaveData(p->CoefHandle); 226 226 npnts = WavePoints(p->QHandle); // Number of points in q wave. 227 227 … … 307 307 308 308 //get the wave data 309 sq = WaveData(p->SQHandle);310 qw = WaveData(p->QHandle);311 cw = WaveData(p->CoefHandle);309 sq = (double*)WaveData(p->SQHandle); 310 qw = (double*)WaveData(p->QHandle); 311 cw = (double*)WaveData(p->CoefHandle); 312 312 npnts = WavePoints(p->QHandle); // Number of points in q wave. 313 313 -
sans/XOP_Dev/SANSAnalysis/XOP/StructureFactor.h
r756 r834 1 1 // header for SphereFit.c 2 2 3 # include "XOPStructureAlignmentTwoByte.h"3 #pragma pack(2) 4 4 5 5 /* structs */ … … 18 18 19 19 20 # include "XOPStructureAlignmentReset.h"20 #pragma pack() 21 21 22 22 /* IGOR Fit Functions */ -
sans/XOP_Dev/SANSAnalysis/XOP/TwoPhase.c
r452 r834 26 26 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 27 27 case NT_FP32: 28 fp= WaveData(p->waveHandle);28 fp= (float*)WaveData(p->waveHandle); 29 29 SetNaN64(&p->result); 30 30 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 31 31 case NT_FP64: 32 dp= WaveData(p->waveHandle);32 dp= (double*)WaveData(p->waveHandle); 33 33 p->result = TeubnerStreyModel(dp,q); 34 34 return 0; … … 57 57 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 58 58 case NT_FP32: 59 fp= WaveData(p->waveHandle);60 SetNaN64(&p->result); 61 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 62 case NT_FP64: 63 dp= WaveData(p->waveHandle);59 fp= (float*)WaveData(p->waveHandle); 60 SetNaN64(&p->result); 61 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 62 case NT_FP64: 63 dp= (double*)WaveData(p->waveHandle); 64 64 p->result = Power_Law_Model(dp,q); 65 65 return 0; … … 89 89 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 90 90 case NT_FP32: 91 fp= WaveData(p->waveHandle);92 SetNaN64(&p->result); 93 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 94 case NT_FP64: 95 dp= WaveData(p->waveHandle);91 fp= (float*)WaveData(p->waveHandle); 92 SetNaN64(&p->result); 93 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 94 case NT_FP64: 95 dp= (double*)WaveData(p->waveHandle); 96 96 p->result = Peak_Lorentz_Model(dp,q); 97 97 return 0; … … 120 120 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 121 121 case NT_FP32: 122 fp= WaveData(p->waveHandle);123 SetNaN64(&p->result); 124 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 125 case NT_FP64: 126 dp= WaveData(p->waveHandle);122 fp= (float*)WaveData(p->waveHandle); 123 SetNaN64(&p->result); 124 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 125 case NT_FP64: 126 dp= (double*)WaveData(p->waveHandle); 127 127 p->result = Peak_Gauss_Model(dp,q); 128 128 return 0; … … 151 151 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 152 152 case NT_FP32: 153 fp= WaveData(p->waveHandle);153 fp= (float*)WaveData(p->waveHandle); 154 154 SetNaN64(&p->result); 155 155 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 156 156 case NT_FP64: 157 dp= WaveData(p->waveHandle);157 dp= (double*)WaveData(p->waveHandle); 158 158 p->result=Lorentz_Model(dp,q); 159 159 return 0; … … 182 182 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 183 183 case NT_FP32: 184 fp= WaveData(p->waveHandle);185 SetNaN64(&p->result); 186 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 187 case NT_FP64: 188 dp= WaveData(p->waveHandle);184 fp= (float*)WaveData(p->waveHandle); 185 SetNaN64(&p->result); 186 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 187 case NT_FP64: 188 dp= (double*)WaveData(p->waveHandle); 189 189 p->result = Fractal(dp,q); 190 190 return 0; … … 213 213 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 214 214 case NT_FP32: 215 fp= WaveData(p->waveHandle);216 SetNaN64(&p->result); 217 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 218 case NT_FP64: 219 dp= WaveData(p->waveHandle);215 fp= (float*)WaveData(p->waveHandle); 216 SetNaN64(&p->result); 217 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 218 case NT_FP64: 219 dp= (double*)WaveData(p->waveHandle); 220 220 p->result = DAB_Model(dp,q); 221 221 return 0; … … 246 246 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 247 247 case NT_FP32: 248 fp= WaveData(p->waveHandle);249 SetNaN64(&p->result); 250 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 251 case NT_FP64: 252 dp= WaveData(p->waveHandle);248 fp= (float*)WaveData(p->waveHandle); 249 SetNaN64(&p->result); 250 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 251 case NT_FP64: 252 dp= (double*)WaveData(p->waveHandle); 253 253 p-> result = OneLevel(dp,q); 254 254 return 0; … … 279 279 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 280 280 case NT_FP32: 281 fp= WaveData(p->waveHandle);282 SetNaN64(&p->result); 283 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 284 case NT_FP64: 285 dp= WaveData(p->waveHandle);281 fp= (float*)WaveData(p->waveHandle); 282 SetNaN64(&p->result); 283 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 284 case NT_FP64: 285 dp= (double*)WaveData(p->waveHandle); 286 286 p->result = TwoLevel(dp, q); 287 287 return 0; … … 312 312 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 313 313 case NT_FP32: 314 fp= WaveData(p->waveHandle);315 SetNaN64(&p->result); 316 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 317 case NT_FP64: 318 dp= WaveData(p->waveHandle);314 fp= (float*)WaveData(p->waveHandle); 315 SetNaN64(&p->result); 316 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 317 case NT_FP64: 318 dp= (double*)WaveData(p->waveHandle); 319 319 p->result = ThreeLevel(dp, q); 320 320 return 0; … … 345 345 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 346 346 case NT_FP32: 347 fp= WaveData(p->waveHandle);348 SetNaN64(&p->result); 349 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 350 case NT_FP64: 351 dp= WaveData(p->waveHandle);347 fp= (float*)WaveData(p->waveHandle); 348 SetNaN64(&p->result); 349 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 350 case NT_FP64: 351 dp= (double*)WaveData(p->waveHandle); 352 352 p->result = FourLevel(dp,q); 353 353 return 0; … … 376 376 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 377 377 case NT_FP32: 378 fp= WaveData(p->waveHandle);379 SetNaN64(&p->result); 380 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 381 case NT_FP64: 382 dp= WaveData(p->waveHandle);378 fp= (float*)WaveData(p->waveHandle); 379 SetNaN64(&p->result); 380 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 381 case NT_FP64: 382 dp= (double*)WaveData(p->waveHandle); 383 383 p->result = BroadPeak(dp,q); 384 384 return 0; … … 407 407 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 408 408 case NT_FP32: 409 fp= WaveData(p->waveHandle);410 SetNaN64(&p->result); 411 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 412 case NT_FP64: 413 dp= WaveData(p->waveHandle);409 fp= (float*)WaveData(p->waveHandle); 410 SetNaN64(&p->result); 411 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 412 case NT_FP64: 413 dp= (double*)WaveData(p->waveHandle); 414 414 p->result = CorrLength(dp,q); 415 415 return 0; … … 438 438 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 439 439 case NT_FP32: 440 fp= WaveData(p->waveHandle);441 SetNaN64(&p->result); 442 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 443 case NT_FP64: 444 dp= WaveData(p->waveHandle);440 fp= (float*)WaveData(p->waveHandle); 441 SetNaN64(&p->result); 442 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 443 case NT_FP64: 444 dp= (double*)WaveData(p->waveHandle); 445 445 p->result = TwoLorentzian(dp,q); 446 446 return 0; … … 469 469 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 470 470 case NT_FP32: 471 fp= WaveData(p->waveHandle);472 SetNaN64(&p->result); 473 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 474 case NT_FP64: 475 dp= WaveData(p->waveHandle);471 fp= (float*)WaveData(p->waveHandle); 472 SetNaN64(&p->result); 473 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 474 case NT_FP64: 475 dp= (double*)WaveData(p->waveHandle); 476 476 p->result = TwoPowerLaw(dp,q); 477 477 return 0; … … 500 500 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 501 501 case NT_FP32: 502 fp= WaveData(p->waveHandle);503 SetNaN64(&p->result); 504 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 505 case NT_FP64: 506 dp= WaveData(p->waveHandle);502 fp= (float*)WaveData(p->waveHandle); 503 SetNaN64(&p->result); 504 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 505 case NT_FP64: 506 dp= (double*)WaveData(p->waveHandle); 507 507 p->result = PolyGaussCoil(dp,q); 508 508 return 0; … … 531 531 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 532 532 case NT_FP32: 533 fp= WaveData(p->waveHandle);534 SetNaN64(&p->result); 535 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 536 case NT_FP64: 537 dp= WaveData(p->waveHandle);533 fp= (float*)WaveData(p->waveHandle); 534 SetNaN64(&p->result); 535 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 536 case NT_FP64: 537 dp= (double*)WaveData(p->waveHandle); 538 538 p->result = GaussLorentzGel(dp,q); 539 539 return 0; … … 562 562 switch(WaveType(p->waveHandle)){ // We can handle single and double precision coefficient waves. 563 563 case NT_FP32: 564 fp= WaveData(p->waveHandle);565 SetNaN64(&p->result); 566 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 567 case NT_FP64: 568 dp= WaveData(p->waveHandle);564 fp= (float*)WaveData(p->waveHandle); 565 SetNaN64(&p->result); 566 return REQUIRES_SP_OR_DP_WAVE; //not quite true, but good enough for now AJJ 4/23/07 567 case NT_FP64: 568 dp= (double*)WaveData(p->waveHandle); 569 569 p->result = GaussianShell(dp,q); 570 570 return 0; -
sans/XOP_Dev/SANSAnalysis/lib/libCylinder.c
r736 r834 12 12 13 13 Warning: 14 The call to WaveData() below returns a pointer to the middle14 The call to (float*)WaveData() below returns a pointer to the middle 15 15 of an unlocked Macintosh handle. In the unlikely event that your 16 16 calculations could cause memory to move, you should copy the coefficient … … 70 70 71 71 Warning: 72 The call to WaveData() below returns a pointer to the middle72 The call to (float*)WaveData() below returns a pointer to the middle 73 73 of an unlocked Macintosh handle. In the unlikely event that your 74 74 calculations could cause memory to move, you should copy the coefficient … … 152 152 153 153 Warning: 154 The call to WaveData() below returns a pointer to the middle154 The call to (float*)WaveData() below returns a pointer to the middle 155 155 of an unlocked Macintosh handle. In the unlikely event that your 156 156 calculations could cause memory to move, you should copy the coefficient … … 235 235 236 236 Warning: 237 The call to WaveData() below returns a pointer to the middle237 The call to (float*)WaveData() below returns a pointer to the middle 238 238 of an unlocked Macintosh handle. In the unlikely event that your 239 239 calculations could cause memory to move, you should copy the coefficient … … 307 307 308 308 Warning: 309 The call to WaveData() below returns a pointer to the middle309 The call to (float*)WaveData() below returns a pointer to the middle 310 310 of an unlocked Macintosh handle. In the unlikely event that your 311 311 calculations could cause memory to move, you should copy the coefficient … … 396 396 397 397 Warning: 398 The call to WaveData() below returns a pointer to the middle398 The call to (float*)WaveData() below returns a pointer to the middle 399 399 of an unlocked Macintosh handle. In the unlikely event that your 400 400 calculations could cause memory to move, you should copy the coefficient … … 451 451 452 452 Warning: 453 The call to WaveData() below returns a pointer to the middle453 The call to (float*)WaveData() below returns a pointer to the middle 454 454 of an unlocked Macintosh handle. In the unlikely event that your 455 455 calculations could cause memory to move, you should copy the coefficient -
sans/XOP_Dev/SANSAnalysis/lib/libSANSAnalysis.h
r756 r834 157 157 // rather than leave it to the whim of the compiler 158 158 /* SRK08 159 # include "XOPStructureAlignmentTwoByte.h"160 159 #pragma pack(2) 160 161 161 typedef struct { 162 162 double scale; … … 182 182 } SmearCylinderParameters; 183 183 184 # include "XOPStructureAlignmentReset.h"184 #pragma pack() 185 185 186 186 /// 1D scattering function -
sans/XOP_Dev/SANSAnalysis/lib/libSphere.c
r821 r834 1057 1057 1058 1058 Warning: 1059 The call to WaveData() below returns a pointer to the middle1059 The call to (float*)WaveData() below returns a pointer to the middle 1060 1060 of an unlocked Macintosh handle. In the unlikely event that your 1061 1061 calculations could cause memory to move, you should copy the coefficient … … 1121 1121 // 1122 1122 Warning: 1123 The call to WaveData() below returns a pointer to the middle1123 The call to (float*)WaveData() below returns a pointer to the middle 1124 1124 of an unlocked Macintosh handle. In the unlikely event that your 1125 1125 calculations could cause memory to move, you should copy the coefficient
Note: See TracChangeset
for help on using the changeset viewer.