@@ -342,7 +342,7 @@ PYBIND11_MODULE(polyfempy, m)
342342 " load_mesh_from_settings" , [](polyfem::State &s, const bool normalize_mesh, const double vismesh_rel_area, const int n_refs, const double boundary_id_threshold) {
343343 init_globals (s);
344344 // py::scoped_ostream_redirect output;
345- s.args [" geometry" ][" advanced" ][" normalize_mesh" ] = normalize_mesh;
345+ s.args [" geometry" ][0 ][ " advanced" ][" normalize_mesh" ] = normalize_mesh;
346346 s.args [" output" ][" paraview" ][" vismesh_rel_area" ] = vismesh_rel_area;
347347 s.load_mesh (); },
348348 " Loads a mesh from the 'mesh' field of the json and 'bc_tag' if any bc tags" , py::arg (" normalize_mesh" ) = bool (false ), py::arg (" vismesh_rel_area" ) = double (0.00001 ), py::arg (" n_refs" ) = int (0 ), py::arg (" boundary_id_threshold" ) = double (-1 ))
@@ -351,8 +351,8 @@ PYBIND11_MODULE(polyfempy, m)
351351 " load_mesh_from_path" , [](polyfem::State &s, const std::string &path, const bool normalize_mesh, const double vismesh_rel_area, const int n_refs, const double boundary_id_threshold) {
352352 init_globals (s);
353353 // py::scoped_ostream_redirect output;
354- s.args [" mesh" ] = path;
355- s.args [" geometry" ][" advanced" ][" normalize_mesh" ] = normalize_mesh;
354+ s.args [" geometry " ][ 0 ][ " mesh" ] = path;
355+ s.args [" geometry" ][0 ][ " advanced" ][" normalize_mesh" ] = normalize_mesh;
356356 s.args [" output" ][" paraview" ][" vismesh_rel_area" ] = vismesh_rel_area;
357357 s.load_mesh (); },
358358 " Loads a mesh from the path and 'bc_tag' from the json if any bc tags" , py::arg (" path" ), py::arg (" normalize_mesh" ) = bool (false ), py::arg (" vismesh_rel_area" ) = double (0.00001 ), py::arg (" n_refs" ) = int (0 ), py::arg (" boundary_id_threshold" ) = double (-1 ))
@@ -361,9 +361,9 @@ PYBIND11_MODULE(polyfempy, m)
361361 " load_mesh_from_path_and_tags" , [](polyfem::State &s, const std::string &path, const std::string &bc_tag, const bool normalize_mesh, const double vismesh_rel_area, const int n_refs, const double boundary_id_threshold) {
362362 init_globals (s);
363363 // py::scoped_ostream_redirect output;
364- s.args [" mesh" ] = path;
364+ s.args [" geometry " ][ 0 ][ " mesh" ] = path;
365365 s.args [" bc_tag" ] = bc_tag;
366- s.args [" geometry" ][" advanced" ][" normalize_mesh" ] = normalize_mesh;
366+ s.args [" geometry" ][0 ][ " advanced" ][" normalize_mesh" ] = normalize_mesh;
367367 s.args [" n_refs" ] = n_refs;
368368 s.args [" output" ][" paraview" ][" vismesh_rel_area" ] = vismesh_rel_area;
369369 s.load_mesh (); },
@@ -380,8 +380,8 @@ PYBIND11_MODULE(polyfempy, m)
380380 s.mesh = std::make_unique<polyfem::mesh::CMesh3D>();
381381 s.mesh ->build_from_matrices (V, F);
382382
383- s.args [" geometry" ][" advanced" ][" normalize_mesh" ] = normalize_mesh;
384- s.args [" geometry" ][" n_refs" ] = n_refs;
383+ s.args [" geometry" ][0 ][ " advanced" ][" normalize_mesh" ] = normalize_mesh;
384+ s.args [" geometry" ][0 ][ " n_refs" ] = n_refs;
385385 s.args [" boundary_id_threshold" ] = boundary_id_threshold;
386386 s.args [" output" ][" paraview" ][" vismesh_rel_area" ] = vismesh_rel_area;
387387
@@ -400,8 +400,8 @@ PYBIND11_MODULE(polyfempy, m)
400400 s.mesh ->build_from_matrices (V, F);
401401 s.mesh ->attach_higher_order_nodes (nodes_pos, nodes_indices);
402402
403- s.args [" geometry" ][" advanced" ][" normalize_mesh" ] = normalize_mesh;
404- s.args [" geometry" ][" n_refs" ] = n_refs;
403+ s.args [" geometry" ][0 ][ " advanced" ][" normalize_mesh" ] = normalize_mesh;
404+ s.args [" geometry" ][0 ][ " n_refs" ] = n_refs;
405405 s.args [" boundary_id_threshold" ] = boundary_id_threshold;
406406 s.args [" output" ][" paraview" ][" vismesh_rel_area" ] = vismesh_rel_area;
407407
@@ -882,12 +882,13 @@ PYBIND11_MODULE(polyfempy, m)
882882 }
883883 else
884884 {
885- in_args[" mesh" ] = mesh;
885+ in_args[" geometry " ][ 0 ][ " mesh" ] = mesh;
886886 in_args[" force_linear_geometry" ] = force_linear_geom;
887887 in_args[" n_refs" ] = n_refs;
888888 if (!problem_name.empty ())
889889 in_args[" problem" ] = problem_name;
890- in_args[" geometry" ][" advanced" ][" normalize_mesh" ] = !skip_normalization;
890+ in_args[" geometry" ][0 ][" advanced" ][" normalize_mesh" ] =
891+ !skip_normalization;
891892 in_args[" project_to_psd" ] = project_to_psd;
892893
893894 if (!scalar_formulation.empty ())
0 commit comments