netgen/tests/pytest/meshes.py

12 lines
247 B
Python
Raw Normal View History

2019-08-12 17:20:30 +05:00
import pytest
@pytest.fixture
def unit_mesh_2d():
import netgen.geom2d as g2d
return g2d.unit_square.GenerateMesh(maxh=0.2)
@pytest.fixture
def unit_mesh_3d():
import netgen.csg as csg
return csg.unit_cube.GenerateMesh(maxh=0.2)