mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +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])
|
@pytest.mark.parametrize(("filename, checkFunc"), [getParamForTest(f) for f in _geofiles])
|
||||||
def test_geoFiles(filename, checkFunc):
|
def test_geoFiles(filename, checkFunc):
|
||||||
|
import filecmp, pyngcore
|
||||||
for i, mp in enumerate(getMeshingparameters(filename)):
|
for i, mp in enumerate(getMeshingparameters(filename)):
|
||||||
print("load geo", filename)
|
print("load geo", filename)
|
||||||
mesh = generateMesh(filename, mp)
|
mesh = generateMesh(filename, mp)
|
||||||
if checkFunc is not None:
|
if checkFunc is not None:
|
||||||
checkFunc(mesh,i)
|
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
|
import time
|
||||||
def generateResultFile():
|
def generateResultFile():
|
||||||
|
Loading…
Reference in New Issue
Block a user