Skip to content

Commit

Permalink
Fixed a bug so it can handle gfortran compiler case properly
Browse files Browse the repository at this point in the history
  On branch epa_develop
  • Loading branch information
dwongepa committed Jun 8, 2021
1 parent 9d9ab1f commit 8b48332
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/Config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,13 @@
while ( <CONFIGURE_DEFAULTS> )
{
if ( $_ =~ /ifort compiler/ )
{ $lioapi = 'Linux2_x86_64ifort';
{ $lioapi_temp = 'Linux2_x86_64ifort';
}
elsif ( $_ =~ /PGI compiler/ )
{ $lioapi = 'Linux2_x86_64pg';
{ $lioapi_temp = 'Linux2_x86_64pg';
}
elsif ( $_ =~ /gfortran compiler/ )
{ $lioapi = 'Linux2_x86_64gfort';
{ $lioapi_temp = 'Linux2_x86_64gfort';
}

if ( substr( $_, 0, 5 ) eq "#ARCH" && $latchon == 1 )
Expand Down Expand Up @@ -499,8 +499,7 @@
close (FH);

if ( $wrf_cmaq_option eq 1 ) # build WRF-CMAQ coupled model
{ system("cp Registry/registry.WRF-CMAQ-twoway_full Registry/registry.WRF-CMAQ-twoway");

{
if ( $lib_path_wo_cmaq == 1 )
{ open (FILE, "<Makefile") || die "File not found";
my @lines = <FILE>;
Expand Down Expand Up @@ -842,6 +841,7 @@
printf "Compile for nesting? (1=basic, 2=preset moves, 3=vortex following) [default 1]: " ;
}
$response = <STDIN> ;
$lioapi = $lioapi_temp;
}
printf "\n" ;
lc $response ;
Expand Down

0 comments on commit 8b48332

Please sign in to comment.