From 42cd17466d557606f19dcd0bbec8ca08bf9036d8 Mon Sep 17 00:00:00 2001 From: alperaltuntas Date: Mon, 4 Nov 2024 11:19:05 -0700 Subject: [PATCH] accomodate old rpointer file naming in builnml check --- cime_config/buildnml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cime_config/buildnml b/cime_config/buildnml index 6f17352..68fcb89 100755 --- a/cime_config/buildnml +++ b/cime_config/buildnml @@ -389,7 +389,7 @@ def prechecks(case, inst_suffixes): if not testcase and (run_type != "startup" or continue_run): for inst_suffix in inst_suffixes: rpointer_pattern = ( - r"rpointer\.ocn" + inst_suffix + r"\.\d{4}-\d{2}-\d{2}-\d{5}" + r"rpointer\.ocn" + inst_suffix + r"(\.\d{4}-\d{2}-\d{2}-\d{5})?$" ) rpointer_files = [ f for f in os.listdir(rundir) if re.match(rpointer_pattern, f)