<filename>applications/MeshMovingApplication/tests/mpi_test_structural_mesh_motion_3d.py<gh_stars>1-10
import os
import KratosMultiphysics
import KratosMultiphysics.MeshMovingApplication
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.kratos_utilities as kratos_utils
import mesh_moving_test_case

class TestCase(mesh_moving_test_case.MeshMovingTestCase):
    def test_Rectangle_3D8N(self):
        with mesh_moving_test_case.ControlledExecutionScope(os.path.dirname(os.path.realpath(__file__))):
            self.createTest('test_structural_mesh_motion_3d/mpi_rectangle_3D8N_test')
            self.runTest()
            kratos_utils.DeleteFileIfExisting("./test_mdpa_files/rectangle_3D8N_test.time")

    def test_Rectangle_3D4N(self):
        with mesh_moving_test_case.ControlledExecutionScope(os.path.dirname(os.path.realpath(__file__))):
            self.createTest('test_structural_mesh_motion_3d/mpi_rectangle_3D4N_test')
            self.runTest()
            kratos_utils.DeleteFileIfExisting("./test_mdpa_files/rectangle_3D4N_test.time")


if __name__ == '__main__':
    KratosUnittest.main()

<filename>applications/MeshMovingApplication/tests/mpi_test_structural_mesh_motion_3d.py<gh_stars>1-10
import os
import KratosMultiphysics
import KratosMultiphysics.MeshMovingApplication
import KratosMultiphysics.KratosUnittest as KratosUnittest
import KratosMultiphysics.kratos_utilities as kratos_utils
import mesh_moving_test_case

class TestCase(mesh_moving_test_case.MeshMovingTestCase):
    def test_Rectangle_3D8N(self):
        with mesh_moving_test_case.ControlledExecutionScope(os.path.dirname(os.path.realpath(__file__))):
            self.createTest('test_structural_mesh_motion_3d/mpi_rectangle_3D8N_test')
            self.runTest()
            kratos_utils.DeleteFileIfExisting("./test_mdpa_files/rectangle_3D8N_test.time")

    def test_Rectangle_3D4N(self):
        with mesh_moving_test_case.ControlledExecutionScope(os.path.dirname(os.path.realpath(__file__))):
            self.createTest('test_structural_mesh_motion_3d/mpi_rectangle_3D4N_test')
            self.runTest()
            kratos_utils.DeleteFileIfExisting("./test_mdpa_files/rectangle_3D4N_test.time")


if __name__ == '__main__':
    KratosUnittest.main()
