get more accurate

This commit is contained in:
2024-09-07 16:47:14 +08:00
parent 4c409ace18
commit 095f63d154
7 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
from dragon import *
kBegPitch = 0.4503
kEndPitch = 0.4504
kTotalSteps = 100
kBegPitch = 0.45033
kEndPitch = 0.45034
kTotalSteps = 1000
kStepPitch = (kEndPitch - kBegPitch) / kTotalSteps
kParallelNum=24
tasks_list = [kBegPitch + kStepPitch * i for i in range(kTotalSteps)]
@@ -9,7 +9,7 @@ task_list_per_process=[tasks_list[i::kParallelNum] for i in range(kParallelNum)]
kDeltaThetaBeg=0
kDeltaThetaEnd=5*2*3.1415926
kStepDeltaTheta=(kDeltaThetaEnd-kDeltaThetaBeg)/1000
kStepDeltaTheta=(kDeltaThetaEnd-kDeltaThetaBeg)/100
print(f"len(task_list_per_thread)={len(task_list_per_process)}",file=sys.stderr)
def ProcessEntryPoint(arg):
pitch_list, process_id, shared_dict, lock = arg