From b232219446e8e17111c782c585426858ec03ab76 Mon Sep 17 00:00:00 2001 From: Loic Gouarin Date: Tue, 24 Mar 2026 14:36:12 +0100 Subject: [PATCH 1/3] ... --- include/samurai/io/restart.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/samurai/io/restart.hpp b/include/samurai/io/restart.hpp index ce12f7a05..3827eda2c 100644 --- a/include/samurai/io/restart.hpp +++ b/include/samurai/io/restart.hpp @@ -415,8 +415,7 @@ 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().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...); From af2e92b16ecc72bb77e28e21ec072fb26dd01974 Mon Sep 17 00:00:00 2001 From: Loic Gouarin Date: Tue, 24 Mar 2026 14:44:55 +0100 Subject: [PATCH 2/3] ... --- include/samurai/io/restart.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/samurai/io/restart.hpp b/include/samurai/io/restart.hpp index 3827eda2c..632046e51 100644 --- a/include/samurai/io/restart.hpp +++ b/include/samurai/io/restart.hpp @@ -415,7 +415,7 @@ namespace samurai ca_type ca; load(file, ca); - auto mesh_cfg = mesh.cfg().min_level(min_level).max_level(max_level).disable_args_parse(); + auto 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...); From 273df1920daaacc03e927955c90be16e3d17c518 Mon Sep 17 00:00:00 2001 From: Loic Gouarin Date: Thu, 2 Apr 2026 06:43:59 +0200 Subject: [PATCH 3/3] ... --- include/samurai/io/restart.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/samurai/io/restart.hpp b/include/samurai/io/restart.hpp index 632046e51..06352a170 100644 --- a/include/samurai/io/restart.hpp +++ b/include/samurai/io/restart.hpp @@ -415,7 +415,8 @@ namespace samurai ca_type ca; load(file, ca); - auto mesh_cfg = mesh.cfg().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...);