Skip to content

Commit f5e6cd8

Browse files
committed
Add reg-expression for robust handling of first match
1 parent afdd4a1 commit f5e6cd8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

datm/cime_config/namelist_definition_datm.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<!-- will correctly choose -->
1212
<!-- CLMCRUJRA2024 when we ask for CLMCRUJRA2024 and -->
1313
<!-- CLMCRUJRA2024b when we ask for CLMCRUJRA2024b. -->
14+
<!-- Note3: The reg-expression after CLMCRUJRA2024 means NOT followed -->
15+
<!-- by a "b" and ensures more robustly that we will end up with the -->
16+
<!-- correct match, even if we were to place CLMCRUJRA2024 before -->
17+
<!-- CLMCRUJRA2024b in the list. -->
1418

1519
<entry id="streamslist">
1620
<type>char(100)</type>
@@ -24,7 +28,7 @@
2428
<value datm_mode="CLMCRUJRA2024b">
2529
CLMCRUJRA2024b.Solar,CLMCRUJRA2024b.Precip,CLMCRUJRA2024b.TPQW
2630
</value>
27-
<value datm_mode="CLMCRUJRA2024">
31+
<value datm_mode="CLMCRUJRA2024(?!b)">
2832
CLMCRUJRA2024.Solar,CLMCRUJRA2024.Precip,CLMCRUJRA2024.TPQW
2933
</value>
3034
<value datm_mode="CLMCRUNCEPv7">

0 commit comments

Comments
 (0)