Skip to content

Commit

Permalink
Merge pull request #499 from ESMCI/jedwards/perl_xml_workaround
Browse files Browse the repository at this point in the history
workaround for problem resolving vars in perl



A better workaround for problem with perl resolving xml correctly

Test suite: scripts_regression_tests (coripi, cesm)
Test baseline:
Test namelist changes:
Test status: bit for bi

Fixes

User interface changes?:

Code review:
  • Loading branch information
jgfouca authored Sep 2, 2016
2 parents a1ad4b4 + e90e1a0 commit 4bcb7d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utils/perl5lib/Config/SetupTools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ sub getxmlvars
$xmlvars->{$id} = $value;
}
}
# These represent a workaround for a problem in resolving variables in perl

if (defined ($xmlvars->{CESMSCRATCHROOT})){
$xmlvars->{CESMSCRATCHROOT}=expand_xml_var($xmlvars->{CESMSCRATCHROOT}, $xmlvars);
}
if (defined ($xmlvars->{DIN_LOC_ROOT})){
$xmlvars->{DIN_LOC_ROOT}=expand_xml_var($xmlvars->{DIN_LOC_ROOT}, $xmlvars);
}
}

#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 4bcb7d8

Please sign in to comment.