Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions hrldas/configure
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
print " 3. Linux ifort compiler serial \n";
print " 4. Linux ifort compiler MPI \n";
print " 5. Linux gfortran compiler serial \n";
print " 6. Linux gfortran compiler MPI \n";
print " 0. exit only \n";

printf "\nEnter selection [%d-%d] : ",1,5 ;
printf "\nEnter selection [%d-%d] : ",1,6 ;

$response = <STDIN> ;
chop($response);
Expand All @@ -23,12 +24,12 @@
switch ($response) {
case 1 {
# serial PGI
system "cp arch/user_build_options.pgf90.serial user_build_options";
system "cp arch/user_build_options.pgi.serial user_build_options";
}

case 2 {
# MPI PGI
system "cp arch/user_build_options.pgf90.mpi user_build_options";
system "cp arch/user_build_options.pgi.mpi user_build_options";
}

case 3 {
Expand All @@ -46,5 +47,12 @@
system "cp arch/user_build_options.gfortran.serial user_build_options";
}

case 6 {
# MPI GFORTRAN
system "cp arch/user_build_options.gfortran.mpi user_build_options";
}

else {print "no selection $response\n"; last}
}

print "Please reminder to change the software package path in the generated user_build_options file before compiling! \n";