mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'testing' into 'master'
Test parallel mesh generation See merge request jschoeberl/netgen!233
This commit is contained in:
commit
dfc5f30dcb
@ -70,11 +70,19 @@ def getParamForTest(filename):
|
||||
|
||||
@pytest.mark.parametrize(("filename, checkFunc"), [getParamForTest(f) for f in _geofiles])
|
||||
def test_geoFiles(filename, checkFunc):
|
||||
import filecmp, pyngcore
|
||||
for i, mp in enumerate(getMeshingparameters(filename)):
|
||||
print("load geo", filename)
|
||||
mesh = generateMesh(filename, mp)
|
||||
if checkFunc is not None:
|
||||
checkFunc(mesh,i)
|
||||
mesh.Save(filename+'_seq.vol.gz')
|
||||
|
||||
with pyngcore.TaskManager():
|
||||
mesh_par = generateMesh(filename, mp)
|
||||
mesh_par.Save(filename+'_par.vol.gz')
|
||||
|
||||
assert filecmp.cmp(filename+'_seq.vol.gz', filename+'_par.vol.gz')
|
||||
|
||||
import time
|
||||
def generateResultFile():
|
||||
|
Loading…
Reference in New Issue
Block a user