From d29ac24d831694d4def3e1bc368243f7e23ce0b5 Mon Sep 17 00:00:00 2001 From: "minghang.li" <24727729+minghangli-uni@users.noreply.github.com> Date: Mon, 8 Dec 2025 14:22:30 +1100 Subject: [PATCH] Improve the efficiency of parallel restart handling in MOM6 (#637) * Enable PARALLEL_RESTARTFILES to allow better initialisation and termination time * Format MOM_input like MOM_parameter_doc.short --------- Co-authored-by: dougiesquire --- MOM_input | 8 ++++++++ docs/MOM_parameter_doc.all | 2 +- docs/MOM_parameter_doc.short | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/MOM_input b/MOM_input index 1f3971de1..98ba8ff15 100644 --- a/MOM_input +++ b/MOM_input @@ -153,6 +153,12 @@ TFREEZE_FORM = "TEOS_POLY" ! default = "TEOS10" ! point. Currently, the valid choices are "LINEAR", "MILLERO_78", "TEOS_POLY", ! "TEOS10" +! === module MOM_restart === +PARALLEL_RESTARTFILES = True ! [Boolean] default = False + ! If true, the IO layout is used to group processors that write to the same + ! restart file or each processor writes its own (numbered) restart file. If + ! false, a single restart file is generated combining output from all PEs. + ! === module MOM_tracer_flow_control === USE_IDEAL_AGE_TRACER = True ! [Boolean] default = False ! If true, use the ideal_age_example tracer package. @@ -769,3 +775,5 @@ USE_RIGID_SEA_ICE = True ! [Boolean] default = False SEA_ICE_RIGID_MASS = 100.0 ! [kg m-2] default = 1000.0 ! The mass of sea-ice per unit area at which the sea-ice starts to exhibit ! rigidity + +! === module MOM_restart === diff --git a/docs/MOM_parameter_doc.all b/docs/MOM_parameter_doc.all index 51e0cd2c4..070c0b19a 100644 --- a/docs/MOM_parameter_doc.all +++ b/docs/MOM_parameter_doc.all @@ -376,7 +376,7 @@ TFREEZE_T_IS_POTT = False ! [Boolean] default = False ! applied. ! === module MOM_restart === -PARALLEL_RESTARTFILES = False ! [Boolean] default = False +PARALLEL_RESTARTFILES = True ! [Boolean] default = False ! If true, the IO layout is used to group processors that write to the same ! restart file or each processor writes its own (numbered) restart file. If ! false, a single restart file is generated combining output from all PEs. diff --git a/docs/MOM_parameter_doc.short b/docs/MOM_parameter_doc.short index d12705819..9af9319bb 100644 --- a/docs/MOM_parameter_doc.short +++ b/docs/MOM_parameter_doc.short @@ -129,6 +129,12 @@ TFREEZE_FORM = "TEOS_POLY" ! default = "TEOS10" ! point. Currently, the valid choices are "LINEAR", "MILLERO_78", "TEOS_POLY", ! "TEOS10" +! === module MOM_restart === +PARALLEL_RESTARTFILES = True ! [Boolean] default = False + ! If true, the IO layout is used to group processors that write to the same + ! restart file or each processor writes its own (numbered) restart file. If + ! false, a single restart file is generated combining output from all PEs. + ! === module MOM_tracer_flow_control === USE_IDEAL_AGE_TRACER = True ! [Boolean] default = False ! If true, use the ideal_age_example tracer package. @@ -745,3 +751,5 @@ USE_RIGID_SEA_ICE = True ! [Boolean] default = False SEA_ICE_RIGID_MASS = 100.0 ! [kg m-2] default = 1000.0 ! The mass of sea-ice per unit area at which the sea-ice starts to exhibit ! rigidity + +! === module MOM_restart ===