← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3713: make the DEM-PFV checktest fully determinist with a data file for initial positions

 

------------------------------------------------------------
revno: 3713
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
timestamp: Fri 2013-08-30 12:33:17 +0200
message:
  make the DEM-PFV checktest fully determinist with a data file for initial positions
added:
  scripts/checks-and-tests/checks/data/100spheres
modified:
  scripts/checks-and-tests/checks/DEM-PFV-check.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/DEM-PFV-check.py'
--- scripts/checks-and-tests/checks/DEM-PFV-check.py	2013-08-29 11:14:16 +0000
+++ scripts/checks-and-tests/checks/DEM-PFV-check.py	2013-08-30 10:33:17 +0000
@@ -23,7 +23,9 @@
 	wallIds=O.bodies.append(walls)
 
 	sp=pack.SpherePack()
-	sp.makeCloud(mn,mx,-1,0.3333,num_spheres,False, 0.95,seed=1) #"seed" make the "random" generation always the same
+	#sp.makeCloud(mn,mx,-1,0.3333,num_spheres,False, 0.95,seed=1) #"seed" is not enough for portable determinism it seems, let us use a data file
+	sp.load(checksPath+'/data/100spheres')
+
 	sp.toSimulation(material='spheres')
 
 	triax=TriaxialStressController(
@@ -77,7 +79,7 @@
 	e22=e22-triax.strain[1]
 	modulus = 1000./abs(e22)
 
-	target=263673.1423
+	target=249064.586653
 	if abs((modulus-target)/target)>tolerance :
 		print "DEM-PFV: difference in bulk modulus:", modulus, "vs. target ",target
 		errors+=1
@@ -103,7 +105,7 @@
 		print "DEM-PFV: unbalanced Qin vs. Qout"
 		errors+=1
 
-	target=0.0512650663801
+	target=0.0408678245942
 	if abs((permeability-target)/target)>tolerance :
 		print "DEM-PFV: difference in permeability:",permeability," vs. target ",target
 		errors+=1
@@ -121,11 +123,11 @@
 	from yade import timing
 	O.run(3000,1)
 
-	target=528.554831762
+	target=637.268936033
 	if abs((flow.getPorePressure((0.5,0.1,0.5))-target)/target)>tolerance :
 		print "DEM-PFV: difference in final pressure:",flow.getPorePressure((0.5,0.1,0.5))," vs. target ",target
 		errors+=1
-	target=0.00265188596144
+	target=0.00260892345196
 	if abs((triax.strain[1]-zeroe22-target)/target)>tolerance :
 		print "DEM-PFV: difference in final deformation",triax.strain[1]-zeroe22," vs. target ",target
 		errors+=1
@@ -134,5 +136,11 @@
 		print "DEM-PFV: More than 60\% of cpu time in FlowEngine (",100.*(float(flow.execTime)/float(sum([e.execTime for e in O.engines]))) ,"%). Should not happen with efficient libraries (check blas/lapack/cholmod implementations)"
 		errors+=1
 
+	flow.forceMetis=True
+	O.run(201,1)
+	if not flow.metisUsed():
+		print "DEM-PFV: Metis is not used during cholmod's reordering although explicitely enabled, something wrong with libraries"
+		errors+=1
+
 	if (errors):
 		resultStatus +=1	#Test is failed
\ No newline at end of file

=== added file 'scripts/checks-and-tests/checks/data/100spheres'
--- scripts/checks-and-tests/checks/data/100spheres	1970-01-01 00:00:00 +0000
+++ scripts/checks-and-tests/checks/data/100spheres	2013-08-30 10:33:17 +0000
@@ -0,0 +1,100 @@
+0.0632457 0.137506 0.588536 0.063226 -1
+0.842337 0.909075 0.228734 0.0629123 -1
+0.513101 0.410777 0.29259 0.0625985 -1
+0.713178 0.140678 0.552867 0.0622848 -1
+0.572038 0.771198 0.580526 0.061971 -1
+0.510268 0.830189 0.934033 0.0616573 -1
+0.698458 0.909364 0.321995 0.0613435 -1
+0.435077 0.850735 0.634324 0.0610297 -1
+0.88327 0.425009 0.331716 0.060716 -1
+0.513094 0.408062 0.754777 0.0604022 -1
+0.666411 0.538952 0.581302 0.0600885 -1
+0.142211 0.596396 0.440358 0.0597747 -1
+0.740399 0.122601 0.228504 0.059461 -1
+0.256304 0.747201 0.133182 0.0591472 -1
+0.218839 0.602966 0.569829 0.0588335 -1
+0.711303 0.335885 0.446001 0.0585197 -1
+0.568087 0.203046 0.675411 0.058206 -1
+0.35397 0.460902 0.125286 0.0578922 -1
+0.171544 0.212005 0.448482 0.0575785 -1
+0.569966 0.654172 0.139978 0.0572647 -1
+0.116057 0.794807 0.402336 0.056951 -1
+0.225881 0.2033 0.906605 0.0566372 -1
+0.935517 0.157095 0.828888 0.0563234 -1
+0.608556 0.653312 0.60127 0.0560097 -1
+0.577936 0.18979 0.282304 0.0556959 -1
+0.765827 0.582739 0.852717 0.0553822 -1
+0.296862 0.231217 0.29576 0.0550684 -1
+0.407717 0.14018 0.631867 0.0547547 -1
+0.133618 0.899989 0.536212 0.0544409 -1
+0.0921193 0.544563 0.70964 0.0541272 -1
+0.486208 0.46921 0.0602879 0.0538134 -1
+0.252228 0.23762 0.563835 0.0534997 -1
+0.155961 0.593446 0.205225 0.0531859 -1
+0.677064 0.271099 0.647271 0.0528722 -1
+0.725058 0.404587 0.790763 0.0525584 -1
+0.337957 0.79412 0.52915 0.0522447 -1
+0.762235 0.905443 0.869685 0.0519309 -1
+0.754353 0.763991 0.564623 0.0516172 -1
+0.869227 0.32951 0.763365 0.0513034 -1
+0.250542 0.453809 0.602187 0.0509896 -1
+0.323428 0.875137 0.101187 0.0506759 -1
+0.262607 0.771509 0.44276 0.0503621 -1
+0.935384 0.602415 0.0959998 0.0500484 -1
+0.807628 0.265685 0.547061 0.0497346 -1
+0.210523 0.519291 0.802076 0.0494209 -1
+0.346678 0.445988 0.335549 0.0491071 -1
+0.712145 0.375483 0.90935 0.0487934 -1
+0.079367 0.0931514 0.842839 0.0484796 -1
+0.56555 0.93538 0.10315 0.0481659 -1
+0.109913 0.781804 0.155589 0.0478521 -1
+0.933627 0.325613 0.251893 0.0475384 -1
+0.607802 0.937669 0.730514 0.0472246 -1
+0.21714 0.876959 0.650905 0.0469109 -1
+0.713226 0.866026 0.720087 0.0465971 -1
+0.205985 0.336471 0.560601 0.0462833 -1
+0.404262 0.27439 0.467811 0.0459696 -1
+0.399282 0.21219 0.5422 0.0456558 -1
+0.279491 0.743819 0.600524 0.0453421 -1
+0.790314 0.223836 0.440482 0.0450283 -1
+0.173372 0.349905 0.6542 0.0447146 -1
+0.872236 0.77503 0.319853 0.0444008 -1
+0.950422 0.316509 0.681236 0.0440871 -1
+0.875169 0.816942 0.480635 0.0437733 -1
+0.10681 0.139044 0.218576 0.0434596 -1
+0.44486 0.492578 0.399139 0.0431458 -1
+0.0584047 0.166868 0.316999 0.0428321 -1
+0.270556 0.626276 0.464675 0.0425183 -1
+0.814508 0.681643 0.904557 0.0422046 -1
+0.231417 0.205926 0.208882 0.0418908 -1
+0.919379 0.403174 0.713806 0.041577 -1
+0.171969 0.774404 0.697855 0.0412633 -1
+0.23728 0.475321 0.91767 0.0409495 -1
+0.372958 0.577225 0.0409206 0.0406358 -1
+0.926633 0.934036 0.646285 0.040322 -1
+0.716763 0.904977 0.424815 0.0400083 -1
+0.588615 0.886954 0.871796 0.0396945 -1
+0.146662 0.3448 0.369151 0.0393808 -1
+0.319354 0.476513 0.661693 0.039067 -1
+0.156809 0.453677 0.546265 0.0387533 -1
+0.416026 0.40884 0.60921 0.0384395 -1
+0.0818604 0.387212 0.662613 0.0381258 -1
+0.92477 0.0546337 0.437419 0.037812 -1
+0.532074 0.304338 0.905312 0.0374983 -1
+0.581168 0.387114 0.578045 0.0371845 -1
+0.492878 0.335594 0.662791 0.0368708 -1
+0.192548 0.76341 0.544556 0.036557 -1
+0.865145 0.877785 0.710656 0.0362432 -1
+0.17073 0.719191 0.256069 0.0359295 -1
+0.0826056 0.232443 0.719743 0.0356157 -1
+0.769743 0.431122 0.159319 0.035302 -1
+0.218126 0.38882 0.909338 0.0349882 -1
+0.382319 0.603201 0.318078 0.0346745 -1
+0.800503 0.477491 0.763354 0.0343607 -1
+0.909841 0.522721 0.399759 0.034047 -1
+0.722825 0.660194 0.668187 0.0337332 -1
+0.394776 0.40613 0.713393 0.0334195 -1
+0.0397222 0.0600967 0.278554 0.0331057 -1
+0.583692 0.935074 0.93591 0.032792 -1
+0.201732 0.607963 0.0696597 0.0324782 -1
+0.165494 0.421522 0.84153 0.0321645 -1