diff --git a/bindings/Mandos/python/Model.cpp b/bindings/Mandos/python/Model.cpp index 3373f7a384cc643c99f0c335e0c8a96611c1d5d7..df24087e060f24fbcfb6869992ec210914cd54cb 100644 --- a/bindings/Mandos/python/Model.cpp +++ b/bindings/Mandos/python/Model.cpp @@ -173,7 +173,7 @@ void mandos::py::wrapModel(::py::module_ &m) }, ::py::arg(), ::py::arg(), - ::py::arg("name"), + ::py::arg("name") = std::optional{}, ::py::arg("stiffness") = mandos::core::Scalar(0)) ///////////////// Visitors ////////////////////// diff --git a/examples/python/RigidBody/local_vs_global.py b/examples/python/RigidBody/local_vs_global.py index 7784c4208af4ccaf2bd704f402c18d6c8e5b965b..6a36b93a5986664f6698c8c05d9bc7d967230059 100644 --- a/examples/python/RigidBody/local_vs_global.py +++ b/examples/python/RigidBody/local_vs_global.py @@ -60,7 +60,7 @@ def simulate_callback(model, rigid_body_local, rigid_body_global): stepParameters.newton_iterations = 5 stepParameters.cg_error = 1e-7 stepParameters.grad_norm = 1e-1 - stepParameters.enable_line_search = False + stepParameters.line_search_iterations = 0 pymandos.step(model, stepParameters) ps.get_surface_mesh("rb_local_mesh").set_transform(rigid_body_local.get_transform()) diff --git a/examples/python/RigidBody/rigidbody.py b/examples/python/RigidBody/rigidbody.py index 5180257b236656afeb7b1b32ba5669f1e6d5dd55..860010cafbb181a275bc27a12a4ac6d0d9bfe472 100644 --- a/examples/python/RigidBody/rigidbody.py +++ b/examples/python/RigidBody/rigidbody.py @@ -40,7 +40,7 @@ def simulate_callback(model, rigid_body): stepParameters.cg_iterations = 20 stepParameters.cg_error = 1e-4 stepParameters.grad_norm = 1e-3 - stepParameters.enable_line_search = False + stepParameters.line_search_iterations = 0 pymandos.step(model, stepParameters) ps.get_surface_mesh("rb_mesh").set_transform(rigid_body.get_transform())