From ae2824904ed59436c3ea2b0dc130c8d237cb0bb4 Mon Sep 17 00:00:00 2001 From: bertinia Date: Fri, 10 Aug 2018 17:57:59 -0600 Subject: [PATCH 1/3] addition of valid elements to src/drivers/mct/cime_config/config_component.xml to ensure that component.get_value returns a value rather than raising an exception. Uniquely define SUPPORTED_BY entry id into MACHINE_SUPPORTED_BY and SOFTWARE_SUPPORTED_BY to correct error in XML parsing. --- cime_config/config_component.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cime_config/config_component.xml b/cime_config/config_component.xml index 3bd2a9c7ca03..46a963bfb4d6 100644 --- a/cime_config/config_component.xml +++ b/cime_config/config_component.xml @@ -136,7 +136,7 @@ Model grid - DO NOT EDIT (for experts only) - + char UNSET case_def @@ -384,6 +384,7 @@ logical TRUE,FALSE + FALSE run_begin_stop_restart env_run.xml @@ -626,7 +627,7 @@ Must be explicitly set in env_build.xml for userdefined machine. - + char @@ -1910,6 +1911,7 @@ integer + 1 $MAX_MPITASKS_PER_NODE $MAX_MPITASKS_PER_NODE @@ -1928,6 +1930,7 @@ integer + 0 0 0 @@ -1945,6 +1948,7 @@ integer + 1 1 1 @@ -1963,6 +1967,7 @@ integer + 0 0 0 @@ -1993,6 +1998,7 @@ integer + 1 1 1 @@ -2030,6 +2036,7 @@ integer + 1 1 1 @@ -2256,6 +2263,7 @@ stride in compute comm of io tasks for each component, if this value is -99 it will be computed based on PIO_NUMTASKS and number of compute tasks + -99 @@ -2271,6 +2279,7 @@ integer + 1 1,2 run_pio env_run.xml @@ -2291,6 +2300,7 @@ integer + 1 run_pio env_run.xml pio root processor relative to component root @@ -2309,6 +2319,7 @@ integer + -99 run_pio env_run.xml @@ -2579,6 +2590,7 @@ logical + FALSE TRUE,FALSE external_tools env_run.xml From c4e9c3576b83ef2866368924dee6438844a38659 Mon Sep 17 00:00:00 2001 From: bertinia Date: Mon, 13 Aug 2018 16:23:32 -0600 Subject: [PATCH 2/3] more cleanup in response to review --- cime_config/config_component.xml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/cime_config/config_component.xml b/cime_config/config_component.xml index 46a963bfb4d6..e3ba8f1b2bf2 100644 --- a/cime_config/config_component.xml +++ b/cime_config/config_component.xml @@ -136,7 +136,7 @@ Model grid - DO NOT EDIT (for experts only) - + char UNSET case_def @@ -627,15 +627,6 @@ Must be explicitly set in env_build.xml for userdefined machine. - - char - - - build_def - env_build.xml - email address of person (or group) that supports the build and port for this machine (do not edit)> - - char @@ -1911,8 +1902,8 @@ integer - 1 + 1 $MAX_MPITASKS_PER_NODE $MAX_MPITASKS_PER_NODE $MAX_MPITASKS_PER_NODE @@ -1930,8 +1921,8 @@ integer - 0 + 0 0 0 0 @@ -1948,8 +1939,8 @@ integer - 1 + 1 1 1 1 @@ -1967,8 +1958,8 @@ integer - 0 + 0 0 0 0 @@ -2036,8 +2027,8 @@ integer - 1 + 1 1 1 1 @@ -2263,8 +2254,8 @@ stride in compute comm of io tasks for each component, if this value is -99 it will be computed based on PIO_NUMTASKS and number of compute tasks - -99 + -99 @@ -2279,7 +2270,6 @@ integer - 1 1,2 run_pio env_run.xml @@ -2300,11 +2290,11 @@ integer - 1 run_pio env_run.xml pio root processor relative to component root + 1 1 1 1 @@ -2319,7 +2309,6 @@ integer - -99 run_pio env_run.xml @@ -2327,6 +2316,7 @@ number of tasks + -99 -99 -99 -99 From 23274b55a7510dbfa4d5d8ddbae3cedc4f5bcc9e Mon Sep 17 00:00:00 2001 From: bertinia Date: Tue, 14 Aug 2018 09:41:03 -0600 Subject: [PATCH 3/3] revert drivers/mct/cime_config/config_component.xml to previous version with the exception of removing the extra SUPPORTED_BY element --- cime_config/config_component.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cime_config/config_component.xml b/cime_config/config_component.xml index e3ba8f1b2bf2..4a38793d4a99 100644 --- a/cime_config/config_component.xml +++ b/cime_config/config_component.xml @@ -384,7 +384,6 @@ logical TRUE,FALSE - FALSE run_begin_stop_restart env_run.xml @@ -1903,7 +1902,6 @@ integer - 1 $MAX_MPITASKS_PER_NODE $MAX_MPITASKS_PER_NODE $MAX_MPITASKS_PER_NODE @@ -1922,7 +1920,6 @@ integer - 0 0 0 0 @@ -1940,7 +1937,6 @@ integer - 1 1 1 1 @@ -1959,7 +1955,6 @@ integer - 0 0 0 0 @@ -1989,7 +1984,6 @@ integer - 1 1 1 @@ -2028,7 +2022,6 @@ integer - 1 1 1 1 @@ -2255,7 +2248,6 @@ be computed based on PIO_NUMTASKS and number of compute tasks - -99 @@ -2294,7 +2286,6 @@ env_run.xml pio root processor relative to component root - 1 1 1 1 @@ -2316,7 +2307,6 @@ number of tasks - -99 -99 -99 -99 @@ -2580,7 +2570,6 @@ logical - FALSE TRUE,FALSE external_tools env_run.xml