From 4ceb7833749654aa96df94e95d166611841e7ffa Mon Sep 17 00:00:00 2001 From: kkeene44 Date: Thu, 9 Mar 2017 14:32:43 -0700 Subject: [PATCH] Add section to compile script to print code/compiler/system information (#12) Added a few lines of code to the 'compile' script in order to print out the version of the code. This is currently hard-wired as Version 3.9. We will either need to come up with a more elegant method to have this automatically update with each version, or simply remember to change it with each new release. There will also be print-outs stating the compiler and system information. --- compile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/compile b/compile index 510adbb..043ba78 100755 --- a/compile +++ b/compile @@ -109,6 +109,28 @@ else exit(1) endif +# Print out WPS version, system info, and compiler/version +echo "============================================================================================== " + echo " " + echo Version 3.9 + echo " " + uname -a + echo " " + set comp = ( `grep "^SFC" configure.wps | cut -d"=" -f2-` ) + if ( "$comp[1]" == "gfortran" ) then + gfortran --version + else if ( "$comp[1]" == "pgf90" ) then + pgf90 --version + else if ( "$comp[1]" == "ifort" ) then + ifort -V + else + echo "Not sure how to figure out the version of this compiler: $comp[1]" + endif + echo " " + echo "============================================================================================== " + echo " " + + echo " " if ( ${#argv} == 0 ) then echo "**** Compiling WPS and all utilities ****" -- 2.11.4.GIT