- Timestamp:
- Nov 2, 2009 10:55:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/MultScatter_MonteCarlo_2D.ipf
r583 r588 102 102 103 103 // nthreads = 1 104 105 variable mt= ThreadGroupCreate(nthreads)104 NVAR mt=root:myGlobals:gThreadGroupID 105 mt = ThreadGroupCreate(nthreads) 106 106 NVAR gInitTime = root:Packages:NIST:SAS:gRanDateTime //time that SASCALC was started 107 107 Print "thread group ID = ",mt 108 108 109 109 inputWave[0] = NNeutron/nthreads //split up the number of neutrons … … 153 153 while( tgs != 0 ) 154 154 variable dummy= ThreadGroupRelease(mt) 155 mt=0 155 156 Print "done with all threads" 156 157 … … 1104 1105 NVAR doMonteCarlo = root:Packages:NIST:SAS:gDoMonteCarlo // == 1 if 2D MonteCarlo set by hidden flag 1105 1106 WAVE rw=root:Packages:NIST:SAS:realsRead 1107 1108 // Try to nicely exit from a threading error, if possible 1109 Variable err=0 1110 if(!exists("root:myGlobals:gThreadGroupID")) 1111 Variable/G root:myGlobals:gThreadGroupID=0 1112 endif 1113 NVAR mt=root:myGlobals:gThreadGroupID 1114 1115 if(mt!=0) //there was an error with the stopping of the threads, possibly user abort 1116 err = ThreadGroupRelease(mt) 1117 Print "threading err = ",err 1118 if(err == 0) 1119 // all *should* be OK 1120 else 1121 return(0) 1122 endif 1123 endif 1106 1124 1107 1125 NVAR imon = root:Packages:NIST:SAS:gImon
Note: See TracChangeset
for help on using the changeset viewer.