diff --git a/python/mesh_metric2_example.py b/python/mesh_metric2_example.py index 4317fbfa..dd11ced3 100644 --- a/python/mesh_metric2_example.py +++ b/python/mesh_metric2_example.py @@ -20,7 +20,7 @@ set_log_level(WARNING) def test_mesh_metric(): - mesh = RectangleMesh(0,0,1,1,20,20) + mesh = RectangleMesh(Point(0,0),Point(1,1),20,20) mesh = adapt(interpolate(Constant(((10.,0.),(0.,10.))),TensorFunctionSpace(mesh,'CG',1))) #extract mesh metric MpH = mesh_metric2(mesh) @@ -63,4 +63,4 @@ def test_mesh_metric3D(): if __name__=="__main__": # test_mesh_metric() - test_mesh_metric3D() \ No newline at end of file + test_mesh_metric3D()