ready to publish code

This commit is contained in:
2024-09-08 18:28:14 +08:00
parent bf1c864823
commit 078f20eb38
4 changed files with 12 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
from dragon import *
kBegPitch = 0.45033
kEndPitch = 0.45034
kTotalSteps = 1000
kTotalSteps = 10
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)/100
kStepDeltaTheta=(kDeltaThetaEnd-kDeltaThetaBeg)/10000
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