------------------------------------------------------------ revno: 3850 committer: Anton Gladky <[email protected]> timestamp: Tue 2016-04-19 22:19:21 +0200 message: Add pause for checkSaveLoadClumps to escape race condition. Workaround for the moment modified: scripts/checks-and-tests/checks/checkSaveLoadClumps.py
-- lp:yade https://code.launchpad.net/~yade-pkg/yade/git-trunk Your team Yade developers is subscribed to branch lp:yade. To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'scripts/checks-and-tests/checks/checkSaveLoadClumps.py' --- scripts/checks-and-tests/checks/checkSaveLoadClumps.py 2016-03-24 22:54:47 +0000 +++ scripts/checks-and-tests/checks/checkSaveLoadClumps.py 2016-04-19 20:19:21 +0000 @@ -9,6 +9,7 @@ from yade import pack import tempfile, shutil +import time #define material for all bodies: id_Mat=O.materials.append(FrictMat(young=1e6,poisson=0.3,density=1000,frictionAngle=1)) @@ -51,7 +52,8 @@ O.save(tmp_dir + '/restartMinWorkEx_'+partType+'_Initial') O.run(100000,True) O.save(tmp_dir + '/restartMinWorkEx_'+partType+str(O.iter)) - +time.sleep(1) O.reset() +time.sleep(1) O.load(tmp_dir + '/restartMinWorkEx_'+partType +'100000') O.run(1000, True)
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

