]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix notebook: use list of Triangulation in merge_triangulations 15885/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 16 Aug 2023 15:01:25 +0000 (15:01 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 16 Aug 2023 15:01:25 +0000 (15:01 +0000)
contrib/python-bindings/notebooks/tutorial-1.ipynb

index 5dc91d03b4046b53a7bc801d933bf9de0c93c506..debf4cec51e0d9e1ad96b77a1f573b49b59229e6 100644 (file)
     "flatten_triangulation_2 = dealii.Triangulation('2D')\n",
     "triangulation_2.flatten_triangulation(flatten_triangulation_2)\n",
     "triangulation_3 = dealii.Triangulation('2D')\n",
-    "triangulation_3.merge_triangulations(flatten_triangulation_1, flatten_triangulation_2)\n",
+    "triangulation_3.merge_triangulations([flatten_triangulation_1, flatten_triangulation_2])\n",
     "\n",
     "plot_triangulation(triangulation_3, color_sc)"
    ]

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.