From c676e39ffec891799b2819c3e82289c9419530c7 Mon Sep 17 00:00:00 2001 From: Piotr Bartman Date: Thu, 25 Jul 2024 08:32:10 +0200 Subject: [PATCH] fix old meshzoo --- conmech/mesh/zoo/rectangle.py | 4 ++-- examples/example_static.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conmech/mesh/zoo/rectangle.py b/conmech/mesh/zoo/rectangle.py index c8e51f9c..e4a62258 100644 --- a/conmech/mesh/zoo/rectangle.py +++ b/conmech/mesh/zoo/rectangle.py @@ -32,8 +32,8 @@ def __init__(self, mesh_descr: RectangleMeshDescription): # pylint: disable=no-member nodes, elements = meshzoo.rectangle_tri( - (0.0, scale_x), - (0.0, scale_y), + (0.0, 0.0), + (scale_x, scale_y), n=(int(mesh_density[0]) + 1, int(mesh_density[1]) + 1), variant="zigzag", ) diff --git a/examples/example_static.py b/examples/example_static.py index 7bb84571..a861cb7d 100644 --- a/examples/example_static.py +++ b/examples/example_static.py @@ -77,4 +77,4 @@ def main(config: Config, dimension=2): if __name__ == "__main__": - main(Config().init(), 3) + main(Config().init(), 2)