diff --git a/include/samurai/io/restart.hpp b/include/samurai/io/restart.hpp index ce12f7a05..06352a170 100644 --- a/include/samurai/io/restart.hpp +++ b/include/samurai/io/restart.hpp @@ -415,8 +415,8 @@ namespace samurai ca_type ca; load(file, ca); - using config_t = typename Mesh::config_t; - auto mesh_cfg = config_t().min_level(min_level).max_level(max_level).disable_args_parse(); + auto mesh_cfg = mesh.cfg(); + mesh_cfg.min_level(min_level).max_level(max_level).disable_args_parse(); Mesh new_mesh{ca, mesh_cfg}; std::swap(mesh, new_mesh); load_fields(file, mesh, fields...);