@@ -323,35 +323,11 @@ PYBIND11_MODULE(interface_model_parameters, module) {
323323 )pbdoc"
324324 )
325325 .def_property_readonly (
326- " itr_list " ,
326+ " mesh " ,
327327 [](const ModelParameters &self) {
328- return NumpyInterface::eigen_to_ndarray<double >(self.itr_list , {static_cast <unsigned long >(self.itr_list .size ())});
328+ pybind11::array_t <double > mesh_array = NumpyInterface::eigen_to_ndarray<double >(self.mesh , {static_cast <unsigned long >(self.ny ), static_cast <unsigned long >(self.nx )});
329+ return mesh_array;
329330 },
330- R"pbdoc(
331- Iteration parameter list for adaptive computations.
332-
333- This read-only attribute provides access to the iteration
334- parameters used by adaptive solvers and mesh refinement
335- algorithms. These parameters control convergence behavior
336- and computational accuracy.
337-
338- Type
339- ----
340- numpy.ndarray
341- 1D array of iteration parameters
342-
343- Notes
344- -----
345- The iteration list is used by:
346- - Adaptive eigenvalue solvers
347- - Mesh refinement algorithms
348- - Convergence acceleration schemes
349- - Multi-grid methods
350-
351- Typical values are monotonically increasing: [1.0, 1.5, 2.0]
352- )pbdoc"
353- )
354- .def_readonly (" mesh" , &ModelParameters::mesh_py,
355331 R"pbdoc(
356332 Refractive index distribution mesh.
357333
@@ -380,6 +356,35 @@ PYBIND11_MODULE(interface_model_parameters, module) {
380356 gradual transitions at material interfaces when possible.
381357 )pbdoc"
382358 )
359+ .def_property_readonly (
360+ " itr_list" ,
361+ [](const ModelParameters &self) {
362+ return NumpyInterface::eigen_to_ndarray<double >(self.itr_list , {static_cast <unsigned long >(self.itr_list .size ())});
363+ },
364+ R"pbdoc(
365+ Iteration parameter list for adaptive computations.
366+
367+ This read-only attribute provides access to the iteration
368+ parameters used by adaptive solvers and mesh refinement
369+ algorithms. These parameters control convergence behavior
370+ and computational accuracy.
371+
372+ Type
373+ ----
374+ numpy.ndarray
375+ 1D array of iteration parameters
376+
377+ Notes
378+ -----
379+ The iteration list is used by:
380+ - Adaptive eigenvalue solvers
381+ - Mesh refinement algorithms
382+ - Convergence acceleration schemes
383+ - Multi-grid methods
384+
385+ Typical values are monotonically increasing: [1.0, 1.5, 2.0]
386+ )pbdoc"
387+ )
383388 .def_readonly (
384389 " x_vector" ,
385390 &ModelParameters::x_vector_py,
0 commit comments