#!/usr/bin/env python """ Test module for 2D Quadrilateral Meshes """ from __future__ import division from builtins import range from builtins import object from past.utils import old_div from proteus.iproteus import * from proteus.test_utils import TestTools TestTools.addSubFolders( inspect.currentframe() ) import stokes_2d_p import stokes_2d_n import pytest import inspect import numpy as np @pytest.fixture(scope="module") def simple_mesh(): nnx = 4 nny = 4 x = (-1.0,-1.0) L = (2.0,2.0) refinementLevels = 2 nLayersOfOverlap = 1 parallelPartitioningType = 0 skipInit = False mlMesh = MeshTools.MultilevelQuadrilateralMesh(nnx,nny,1,
#!/usr/bin/env python """ Test module for 2D Quadrilateral Meshes """ from proteus.iproteus import * from proteus.test_utils import TestTools TestTools.addSubFolders( inspect.currentframe() ) import stokes_2d_p import stokes_2d_n import pytest import inspect pytestmark = pytest.mark.meshtest def test_mesh_build(): """ Test mesh generation and refinment """ nnx = 4 nny = 4 x = (-1.0,-1.0) L = (2.0,2.0) refinementLevels = 2 nLayersOfOverlap = 1 parallelPartitioningType = 0 skipInit = False mlMesh = MeshTools.MultilevelQuadrilateralMesh(nnx,nny,1, x[0],x[1],0.0, L[0],L[1],1,