@@ -185,6 +185,44 @@ namespace shammodels::basegodunov {
185185 },
186186 py::kw_only (),
187187 py::arg (" crit_mass" ))
188+ .def (
189+ " set_amr_mode_pseudo_gradient_based" ,
190+ [](TConfig &self, Tscal error_min, Tscal error_max) {
191+ self.amr_mode .set_refine_pseudo_gradient_based (error_min, error_max);
192+ },
193+ py::kw_only (),
194+ py::arg (" error_min" ),
195+ py::arg (" error_max" ))
196+ .def (
197+ " set_amr_mode_pseudo_second_gradient_based" ,
198+ [](TConfig &self, Tscal crit_refine, Tscal crit_coarsen) {
199+ self.amr_mode .set_refine_second_derivative_based (crit_refine, crit_coarsen);
200+ },
201+ py::kw_only (),
202+ py::arg (" crit_refine" ),
203+ py::arg (" crit_coarsen" ))
204+ .def (
205+ " set_amr_mode_slope_based" ,
206+ [](TConfig &self, Tscal crit_smooth) {
207+ self.amr_mode .set_refine_slope_based (crit_smooth);
208+ },
209+ py::kw_only (),
210+ py::arg (" crit_smooth" ))
211+ .def (
212+ " set_amr_mode_shocks_based" ,
213+ [](TConfig &self, Tscal crit_pressure, Tscal crit_energy) {
214+ self.amr_mode .set_refine_shocks_based (crit_pressure, crit_energy);
215+ },
216+ py::kw_only (),
217+ py::arg (" crit_pressure" ),
218+ py::arg (" crit_energy" ))
219+ .def (
220+ " set_amr_mode_shear_based" ,
221+ [](TConfig &self, Tscal epsilon_shear) {
222+ self.amr_mode .set_refine_shear_based (epsilon_shear);
223+ },
224+ py::kw_only (),
225+ py::arg (" epsilon_shear" ))
188226 .def (
189227 " set_gravity_mode_no_gravity" ,
190228 [](TConfig &self) {
0 commit comments