def test_dimension(self): """ Test debug(). """ mesh = Mesh() self.assertEqual(0, mesh.dimension()) return
def test_dimension(self): """ Test debug(). """ mesh = Mesh() self.assertEqual(0, mesh.dimension()) return
def test_constructorA(self): """ Test constructor. """ mesh = Mesh() self.assertEqual(0, mesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_constructorA(self): """ Test constructor. """ mesh = Mesh() self.assertEqual(0, mesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_constructorB(self): """ Test constructor. """ dim = 2 mesh = Mesh(dim=dim) self.assertEqual(dim, mesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_dimension(self): """ Test debug(). """ mesh = self._getMesh() submesh = Mesh(mesh=mesh, label="bc") self.assertEqual(1, submesh.dimension()) return
def test_constructorB(self): """ Test constructor. """ mesh = self._getMesh() submesh = Mesh(mesh=mesh, label="bc") self.assertEqual(1, submesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_constructorB(self): """ Test constructor. """ dim = 2 mesh = Mesh(dim=dim) self.assertEqual(dim, mesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_dimension(self): """ Test debug(). """ mesh = self._getMesh() submesh = Mesh(mesh=mesh, label="bc") self.assertEqual(1, submesh.dimension()) return
def test_constructorB(self): """ Test constructor. """ mesh = self._getMesh() submesh = Mesh(mesh=mesh, label="bc") self.assertEqual(1, submesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_constructorC(self): """ Test constructor. """ dim = 2 from pylith.mpi.Communicator import mpi_comm_self mesh = Mesh(dim=dim, comm=mpi_comm_self()) self.assertEqual(dim, mesh.dimension()) self.assertEqual(False, mesh.debug()) return
def test_constructorC(self): """ Test constructor. """ dim = 2 from pylith.mpi.Communicator import mpi_comm_self mesh = Mesh(dim=dim, comm=mpi_comm_self()) self.assertEqual(dim, mesh.dimension()) self.assertEqual(False, mesh.debug()) return