exit(0) iteration = int(sys.argv[1]) changeVPeriod = int(sys.argv[2]) vsign = 1 startsim = timeit.default_timer() # send record to clock service addrList=metaclient.getServerAddr() addr = addrList[0] metaclient.Recordtime(addr, "SIM") for t in range (iteration): moveToCenter = False if (t>=changeVPeriod and t%changeVPeriod==0): moveToCenter = True updateGridValueFake(gridList,moveToCenter) putDataToDataSpaces(gridListNew,t) ds.finalize() MPI.Finalize()
appid = 1 var_name = "ex1_sample_data" #lock_name = "my_test_lock_"+str(rank) lock_name = "my_test_lock" ds = dataspaces.dataspaceClient(appid,comm) # check the meta periodically addrList =metaclient.getServerAddr() addr = addrList[0] metaclient.Recordtimetick(addr, "SCHEDULE") anakey = "ANA_"+str(rank) metaclient.Recordtime(addr, anakey) #assume those info is required from the metadata ts = 10 lb=[0] ub=[15*15*15*(1)-1] var_name = "ex1_sample_data" # pull real data once getdata_p1,rcode = ds.get(var_name, ts, lb, ub) initanaok = timeit.default_timer() prepareTime = initanaok-initanastart