Skip to content

Commit

Permalink
fix issue in build-namelist
Browse files Browse the repository at this point in the history
	modified:   bld/build-namelist
  • Loading branch information
fvitt committed Aug 23, 2024
1 parent 712dead commit ba285ec
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ if ( $prog_species ) {
add_default($nl, 'ghg_chem', 'val'=>".true.");
add_default($nl, 'bndtvg');
}
if ( $prog_species =~ /DST/ and $soil_erod_atm =~ /$TRUE/io) {
if ( $prog_species =~ /DST/ and $soil_erod_atm =~ /$TRUE/) {
add_default($nl, 'soil_erod_file' );
}

Expand Down Expand Up @@ -2086,7 +2086,7 @@ if ($chem =~ /geoschem/) {

# Datasets
my @files = ( 'flbc_file' );
if ($soil_erod_atm =~ /$TRUE/io) {
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}
foreach my $file (@files) {
Expand Down Expand Up @@ -2133,7 +2133,7 @@ if ($chem =~ /trop_mozart/ or $chem =~ /trop_strat/ or $chem =~ /waccm_tsmlt/) {
@files = ( 'flbc_file',
'xs_coef_file','xs_short_file','xs_long_file', 'rsf_file', 'exo_coldens_file', 'sulf_file' );
}
if ($soil_erod_atm =~ /$TRUE/io) {
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}
foreach my $file (@files) {
Expand Down Expand Up @@ -2233,8 +2233,8 @@ if ($chem eq 'trop_mam3') {
add_default($nl, 'flbc_list', 'val'=>"' '");

# Datasets
my @files = ('soil_erod_file', 'rsf_file', 'exo_coldens_file' );
if ($soil_erod_atm =~ /$TRUE/io) {
my @files = ( 'xs_long_file', 'rsf_file', 'exo_coldens_file' );
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}
foreach my $file (@files) {
Expand Down Expand Up @@ -2741,7 +2741,7 @@ if (($chem eq 'trop_mam4') or ($chem eq 'waccm_sc_mam4') or ($chem eq 'ghg_mam4'

# Datasets
my @files = ('xs_long_file', 'rsf_file', 'exo_coldens_file' );
if ($soil_erod_atm =~ /$TRUE/io) {
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}
foreach my $file (@files) {
Expand Down Expand Up @@ -2832,7 +2832,7 @@ if ($chem eq 'trop_mam7') {

# Datasets
my @files = ('xs_long_file', 'rsf_file', 'exo_coldens_file' );
if ($soil_erod_atm =~ /$TRUE/io) {
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}
foreach my $file (@files) {
Expand Down Expand Up @@ -2894,7 +2894,7 @@ if ($chem =~ /waccm_ma/ or $chem =~ /waccm_tsmlt/) {
'euvac_file', 'solar_parms_data_file',
'depvel_lnd_file',
'xs_coef_file', 'xs_short_file','xs_long_file', 'rsf_file' );
if ($soil_erod_atm =~ /$TRUE/io) {
if ($soil_erod_atm =~ /$TRUE/) {
@files = ( @files, 'soil_erod_file' );
}

Expand Down Expand Up @@ -3749,7 +3749,6 @@ if ( length($nl->get_value('soil_erod_file'))>0 ) {
}
}
}

if (chem_has_species($cfg, 'NO')) {
# set scaling of lightning NOx production
add_default($nl, 'lght_no_prd_factor' );
Expand Down

0 comments on commit ba285ec

Please sign in to comment.