Changeset 819 for sans/Dev/trunk
- Timestamp:
- Jul 19, 2011 6:24:00 PM (12 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Models/NewModels_2008/PolyCore_and_NShells_v40.ipf
r570 r819 3 3 4 4 //////////////////////////////////////////////// 5 // 5 // AJJ Modified 7/9/11 for H Wacklin - higher numbers of shells need more integration 6 // steps. Thus removed reference to XOP versions and made use of Make_N_GaussPoints 7 // 8 // Need to update XOP version and this to properly deal with this requirement. 9 // 10 //////////////////////////////////////////////////// 6 11 // this function is for the form factor of a with some 7 12 // number of shells around a central core (currently 1-2-3-4) … … 284 289 Wave cw,yw,xw 285 290 286 #if exists("PolyOneShellX")287 yw = PolyOneShellX(cw,xw)288 #else291 //#if exists("PolyOneShellX") 292 // yw = PolyOneShellX(cw,xw) 293 //#else 289 294 yw = fPolyOneShell(cw,xw) 290 #endif295 //#endif 291 296 return(0) 292 297 End … … 295 300 Wave cw,yw,xw 296 301 297 #if exists("PolyTwoShellX")302 //#if exists("PolyTwoShellX") 298 303 yw = PolyTwoShellX(cw,xw) 299 #else304 //#else 300 305 yw = fPolyTwoShell(cw,xw) 301 #endif306 //#endif 302 307 return(0) 303 308 End … … 306 311 Wave cw,yw,xw 307 312 308 #if exists("PolyThreeShellX")309 yw =PolyThreeShellX(cw,xw)310 #else313 //#if exists("PolyThreeShellX") 314 // yw =PolyThreeShellX(cw,xw) 315 //#else 311 316 yw = fPolyThreeShell(cw,xw) 312 #endif317 //#endif 313 318 return(0) 314 319 End … … 317 322 Wave cw,yw,xw 318 323 319 #if exists("PolyFourShellX")320 yw = PolyFourShellX(cw,xw)321 #else324 //#if exists("PolyFourShellX") 325 // yw = PolyFourShellX(cw,xw) 326 //#else 322 327 yw = fPolyFourShell(cw,xw) 323 #endif328 //#endif 324 329 return(0) 325 330 End … … 353 358 NVAR/Z gNord=gNord 354 359 if(! NVAR_Exists(gNord) ) 355 nord= 76//use 76 pts as default360 nord=120 //use 76 pts as default 356 361 else 357 362 if( (gNord == 20) || (gNord ==76) ) … … 458 463 459 464 //select number of gauss points by setting nord=20 or76 points 460 NVAR/Z gNord=gNord461 if(! NVAR_Exists(gNord) )462 nord= 76//use 76 pts as default463 else464 if( (gNord == 20) || (gNord ==76) )465 nord = gNord // should only allow 20 or 76 points466 else467 abort "global value gNord in SchulzSpheres must be either 20 or 76"468 endif469 endif470 465 // NVAR/Z gNord=gNord 466 // if(! NVAR_Exists(gNord) ) 467 nord=120 //use 76 pts as default 468 // else 469 // if( (gNord == 20) || (gNord ==76) ) 470 // nord = gNord // should only allow 20 or 76 points 471 // else 472 // abort "global value gNord in SchulzSpheres must be either 20 or 76" 473 // endif 474 // endif 475 // 471 476 weightStr = "gauss"+num2str(nord)+"wt" 472 477 zStr = "gauss"+num2str(nord)+"z" … … 479 484 Make20GaussPoints(gauWt,gauZ) 480 485 else 481 Make 76GaussPoints(gauWt,gauZ)486 Make_N_GaussPoints(gauWt,gauZ) 482 487 endif 483 488 else … … 568 573 569 574 //select number of gauss points by setting nord=20 or76 points 570 NVAR/Z gNord=gNord571 if(! NVAR_Exists(gNord) )572 nord= 76//use 76 pts as default573 else574 if( (gNord == 20) || (gNord ==76) )575 nord = gNord // should only allow 20 or 76 points576 else577 abort "global value gNord in SchulzSpheres must be either 20 or 76"578 endif579 endif575 // NVAR/Z gNord=gNord 576 // if(! NVAR_Exists(gNord) ) 577 nord=120 //use 76 pts as default 578 // else 579 // if( (gNord == 20) || (gNord ==76) ) 580 // nord = gNord // should only allow 20 or 76 points 581 // else 582 // abort "global value gNord in SchulzSpheres must be either 20 or 76" 583 // endif 584 // endif 580 585 581 586 weightStr = "gauss"+num2str(nord)+"wt" … … 589 594 Make20GaussPoints(gauWt,gauZ) 590 595 else 591 Make 76GaussPoints(gauWt,gauZ)596 Make_N_GaussPoints(gauWt,gauZ) 592 597 endif 593 598 else … … 684 689 //select number of gauss points by setting nord=20 or76 points 685 690 NVAR/Z gNord=gNord 686 if(! NVAR_Exists(gNord) )687 nord= 76//use 76 pts as default688 else689 if( (gNord == 20) || (gNord ==76) )690 nord = gNord // should only allow 20 or 76 points691 else692 abort "global value gNord in SchulzSpheres must be either 20 or 76"693 endif694 endif691 // if(! NVAR_Exists(gNord) ) 692 nord=120 //use 76 pts as default 693 // else 694 // if( (gNord == 20) || (gNord ==76) ) 695 // nord = gNord // should only allow 20 or 76 points 696 // else 697 // abort "global value gNord in SchulzSpheres must be either 20 or 76" 698 // endif 699 // endif 695 700 696 701 weightStr = "gauss"+num2str(nord)+"wt" … … 704 709 Make20GaussPoints(gauWt,gauZ) 705 710 else 706 Make 76GaussPoints(gauWt,gauZ)711 Make_N_GaussPoints(gauWt,gauZ) 707 712 endif 708 713 else -
sans/Dev/trunk/NCNR_User_Procedures/Common/DataSetHandling.ipf
r770 r819 1710 1710 End 1711 1711 1712 Function ReSortDataSet(set1name) 1713 String set1name 1714 1715 String set1Path = "root:"+set1Name+":" 1716 String curPath = GetDataFolder(1) 1717 1718 SetDataFolder set1Path 1719 1720 sort $(set1name+"_q"),$(set1name+"_q"),$(set1name+"_i"),$(set1name+"_s") 1721 1722 SetDataFolder curPath 1723 1724 return 0 1725 End 1726 1712 1727 1713 1728 ///////////////////////////Other Utility functions ////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.