Changeset 834 for sans/XOP_Dev/SANSAnalysis/XOP/TwoPhase.c
 Timestamp:
 Jan 31, 2012 12:13:39 PM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

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;
Note: See TracChangeset
for help on using the changeset viewer.