Skip to content
Snippets Groups Projects
Commit adfbaf64 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Global: added file tags for 'output_nml' groups in 'namelist2config'

parent 4bf98c61
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ Global
* Added 'files2config' tool to extract input file info from logs and scripts
* Added variable replacement beta options to the '...2config' tools
* Added output of file name in -d mode of 'namelist2config'
* Added file tags for 'output_nml' groups in 'namelist2config'
Configuration
-------------
......
......@@ -190,6 +190,17 @@ unless($direct) {
for my $file (sort keys %namelists) {
print(" [[$file]]\n");
$namelist_file = $namelists{$file};
# Replace TODO markers for output_nml by output_filename info
for my $group (grep(/^output_nml/, keys %$namelist_file)) {
$namelist_group = $namelist_file->{$group};
my $key = subst_value($namelist_group->{output_filename}->[0]);
$key =~ s/^\$\{EXP_ID\}_//;
$key = 'output_nml '.$key;
$namelist_file->{$key} = $namelist_group;
delete $namelist_file->{$group};
}
for my $group (sort keys %$namelist_file) {
print(" [[[$group]]]\n");
$namelist_group = $namelist_file->{$group};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment