There was an error while loading. Please reload this page.
1 parent 0544821 commit 398fd72Copy full SHA for 398fd72
1 file changed
bld/build-namelist
@@ -736,8 +736,11 @@ if (!($simple_phys or $aqua_mode)) {
736
stream_co2_surface_source_year_last,
737
stream_co2_surface_source_year_align\n";
738
}
739
+ # get_value preserves the quotes from the namelist, so strip them before comparing
740
my $mapalgo = $nl->get_value('stream_co2_surface_source_mapalgo');
741
my $mesh = $nl->get_value('stream_co2_surface_source_mesh_filename');
742
+ $mapalgo =~ s/^['"]+|['"]+$//g;
743
+ $mesh =~ s/^['"]+|['"]+$//g;
744
if (($mapalgo eq 'nearest_lat') and ($mesh ne 'none')) {
745
die "$ProgName - ERROR: stream_co2_surface_source_mesh_filename must be set to 'none' " .
746
"when stream_co2_surface_source_mapalgo is 'nearest_lat'\n";
0 commit comments