<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic libirc.a compiling error in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749529#M6400</link>
    <description>I've tried to register my Intel Compiler Suite Professional Edition for Linux, but in the Registration Center web page said that there is a problem with my account that prevents to register my product.

Is this procedure valid for Free-Non Commercial products for Linux?</description>
    <pubDate>Wed, 15 Sep 2010 18:42:19 GMT</pubDate>
    <dc:creator>jipazimp_mx</dc:creator>
    <dc:date>2010-09-15T18:42:19Z</dc:date>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749514#M6385</link>
      <description>I'm using intel 11.1 compilers at linux ubuntu 10.04, kernel 2.6 system, and i've tried to compile the mfix program, everything runs ok, but at the end of the compiling process I got the following message:&lt;BR /&gt;&lt;BR /&gt;______________________________________________________________________________________&lt;BR /&gt;ld: mfix.exe: hidden symbol `__intel_cpu_indicator_init' in /opt/intel/Compiler/11.1/073/lib/ia32/libirc.a(cpu_dis.o) is referenced by DSO&lt;BR /&gt;&lt;BR /&gt;ld: final link failed: Nonrepresentative section on output&lt;BR /&gt;&lt;BR /&gt;make: ***[mfix.exe] Error 1&lt;BR /&gt;&lt;BR /&gt;***File mfix.exe NOT created&lt;BR /&gt;_______________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;It seems that is something wrong with libirc.a library.&lt;BR /&gt;&lt;BR /&gt;Any help is very welcome</description>
      <pubDate>Wed, 08 Sep 2010 14:23:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749514#M6385</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-08T14:23:23Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749515#M6386</link>
      <description>&lt;P&gt;The linker messages may be suggesting some link specific options might be in conflict with linking the static form (libirc.a).&lt;/P&gt;&lt;P&gt;Perhaps this mfix program should be linking libirc.so?&lt;BR /&gt;Have you built this program with any earlier 11.1 intel compilers?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 14:56:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749515#M6386</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-08T14:56:43Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749516#M6387</link>
      <description>Itlooks like perhapsa shared library is linked in that may not be built correctly in that it does not have libirc.a built into it.&lt;BR /&gt;&lt;BR /&gt;Can you provide more details on the link options used?&lt;BR /&gt;&lt;BR /&gt;And let us know if this app built correctly with earlier Intel 11.1 compilers or not.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Sep 2010 15:53:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749516#M6387</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-08T15:53:30Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749517#M6388</link>
      <description>Kevin:
I'll check what you say in previous answers.
I have not built this app using Intel 11.1 compilers,  I got a correct built 4 years ago using that Intel compilers, I don't remember the version.</description>
      <pubDate>Wed, 08 Sep 2010 16:41:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749517#M6388</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-08T16:41:40Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749518#M6389</link>
      <description>Such problems can occur when mixing different versions of the libraries. Please take care that everything is rebuilt, if possible, with the current compiler, and that everything is linked against the current libraries.</description>
      <pubDate>Wed, 08 Sep 2010 16:53:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749518#M6389</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-09-08T16:53:06Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749519#M6390</link>
      <description>&lt;P&gt;It seems something is wrong with libirc.a.&lt;BR /&gt;&lt;BR /&gt;The compiler options are:&lt;BR /&gt;&lt;BR /&gt;ifort -lsvml&lt;/P&gt;&lt;P&gt;link -I&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:56:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749519#M6390</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-10T17:56:54Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749520#M6391</link>
      <description>&lt;P&gt;More details are needed here or a reproducing test case. It appears you have an object named cpu_dis.o from your program that resides in a shared library that references the indicated hidden symbol. By default, DSOs are allowed to be created with missing symbols at link time but there are link options to disallow that.&lt;/P&gt;&lt;P&gt;Please post the complete link command-line that is executed by your makefile.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Sep 2010 09:33:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749520#M6391</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-12T09:33:47Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749521#M6392</link>
      <description>Hi, I have the same problem!&lt;BR /&gt;I'm trying to use mfix (a fortran code for Multiphase flow written in Fortran)&lt;BR /&gt;and at the end of a compiling (with the commandI obtain&lt;BR /&gt;ld: mfix.exe: hidden symbol `__intel_cpu_indicator_init' in 
/opt/intel/Compiler/11.1/073/lib/ia32/libirc.a(cpu_dis.o) is referenced 
by DSO&lt;BR /&gt;&lt;BR /&gt;ld: final link failed: Nonrepresentative section on output&lt;BR /&gt;&lt;BR /&gt;make: ***[mfix.exe] Error 1&lt;BR /&gt;&lt;BR /&gt;***File mfix.exe NOT created&lt;BR /&gt;&lt;BR /&gt;What is the problem?&lt;BR /&gt;&lt;BR /&gt;Help!&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Sep 2010 10:59:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749521#M6392</guid>
      <dc:creator>giuseppec</dc:creator>
      <dc:date>2010-09-14T10:59:12Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749522#M6393</link>
      <description>The root-cause is still unknown. The link message alone is insufficient to conclude there is an issue with libirc.a. The information I found about this message suggests there is a shared library being linked inthat isn't built with the reference to the indicated symbol being fully resolved as the linker expected.&lt;BR /&gt;&lt;BR /&gt;As I've requested earlier, more information is needed about the complete link command and one should also be looking into the mfix app to find where cpu_dis.o is coming from (likely an .so) because that is not a libirc.a routine.</description>
      <pubDate>Tue, 14 Sep 2010 11:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749522#M6393</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-14T11:13:19Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749523#M6394</link>
      <description>You are right.&lt;BR /&gt;&lt;BR /&gt;The entire file make_mfix is too long to post.&lt;BR /&gt;&lt;BR /&gt;This is the first part:&lt;BR /&gt;!/bin/bsh -f&lt;BR /&gt;#&lt;BR /&gt;# MFIX script file for obtaining user-defined files and&lt;BR /&gt;# executing 'make'&lt;BR /&gt;# Usage:&lt;BR /&gt;# 1) on unix machines : sh mfix/model/make_mfix&lt;BR /&gt;# 2) on NT using PGI bash : bash mfix/model/make_mfix&lt;BR /&gt;#&lt;BR /&gt;# M. Syamlal and P. Nicoletti 9-27-94&lt;BR /&gt;# A. Gel (Aeolus Research) revision 8-31-05&lt;BR /&gt;#&lt;BR /&gt;vers="2007-4"&lt;BR /&gt;# Flag variable for compiling with Pentium 4 specific optimization flags &lt;BR /&gt;# Set to 0 to avoid Pentium 4 specific optimizations&lt;BR /&gt;P4_OPTIMIZE=1&lt;BR /&gt;#&lt;BR /&gt;#============ TAU related settings ===================&lt;BR /&gt;# Flag variable to enable TAU automatic instrumentation for performance&lt;BR /&gt;# profiling&lt;BR /&gt;#USE_TAU=1&lt;BR /&gt; # ***** I M P O R T A N T&lt;BR /&gt; # MUST set the TAUROOTDIR environment variable to a valid path of TAU installation&lt;BR /&gt; # if USE_TAU is enabled.&lt;BR /&gt; # FOLLOWING PATH SETTINGS is FOR NCCS&lt;BR /&gt; TAUROOTDIR=/spin/proj/perc/TOOLS/tau_latest&lt;BR /&gt; # MUST set the PDTROOTDIR environment variable to a valid path of PDToolkit installation&lt;BR /&gt; # if USE_TAU is enabled.&lt;BR /&gt; PDTROOTDIR=/spin/proj/perc/TOOLS/pdtoolkit-3.11&lt;BR /&gt;# &lt;BR /&gt;#========== end of TAU related settings ============== &lt;BR /&gt;#&lt;BR /&gt;# Flag variable for compiling with interfaces to call ISAT&lt;BR /&gt;# To set to true, change this to 1. By default it is set to false (0).&lt;BR /&gt;DO_ISAT=0&lt;BR /&gt;#&lt;BR /&gt;echo&lt;BR /&gt;echo &lt;BR /&gt;echo "*******************************************"&lt;BR /&gt;echo "* Creating the MFIX-executable mfix.exe *"&lt;BR /&gt;echo "* Version $vers *"&lt;BR /&gt;echo "*******************************************"&lt;BR /&gt;echo&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# Get run directory name&lt;BR /&gt;#&lt;BR /&gt;set `pwd` ; run_dir=$1&lt;BR /&gt;#&lt;BR /&gt;# Get path name to mfix directory and cd to mfix directory&lt;BR /&gt;#&lt;BR /&gt;mfix=`echo $0 | sed 's/\/make_mfix//'`&lt;BR /&gt;cd $mfix&lt;BR /&gt;set `pwd` ; mfix=$1&lt;BR /&gt;&lt;BR /&gt;if test $mfix = $run_dir &lt;BR /&gt;then&lt;BR /&gt; echo "*** Execute this command from any directory other than the current directory!"&lt;BR /&gt; echo "*** It is usually executed from a run directory containing user defined files."&lt;BR /&gt; echo&lt;BR /&gt; exit&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# get user input&lt;BR /&gt;echo&lt;BR /&gt;echo "MFIX directory is $mfix"&lt;BR /&gt;echo&lt;BR /&gt;&lt;BR /&gt;# write mfix/model path into the file mfix_directory_path.inc, if it already does not exist&lt;BR /&gt;if grep -qs " CHARACTER(len=132) :: MFIX_PATH = '$mfix'" mfix_directory_path.inc&lt;BR /&gt;then&lt;BR /&gt; echo " "&lt;BR /&gt;else&lt;BR /&gt; echo " CHARACTER(len=132) :: MFIX_PATH = '$mfix'" &amp;gt; mfix_directory_path.inc&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo -n "Do you need SMP version? (y/n) [no] "&lt;BR /&gt;read smp_version&lt;BR /&gt;&lt;BR /&gt;echo&lt;BR /&gt;echo -n "Do you need DMP version? (y/n) [no] "&lt;BR /&gt;read dmp_version&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;# Define machine dependent flags and copy machine dependent files&lt;BR /&gt;# Check whether the last compilation was on the same machine.&lt;BR /&gt;# Give a different name for each machine file (IRIXF90.F, ULTRIX.F, etc.)&lt;BR /&gt;&lt;BR /&gt; set `uname -s` ; opsys=$1&lt;BR /&gt; set `uname -p` ; proctyp=$1&lt;BR /&gt; &lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;# Check if the system is a Linux system, to display WARNING message &lt;BR /&gt;if test $opsys = "Linux"&lt;BR /&gt;then&lt;BR /&gt; if test $proctyp = "x86_64" -o $proctyp = "ppc64"&lt;BR /&gt; then&lt;BR /&gt; P4_OPTIMIZE=0&lt;BR /&gt; else&lt;BR /&gt; echo&lt;BR /&gt; echo "-------------- W A R N I N G ---------------------"&lt;BR /&gt; echo " For compiling on Linux with Intel compilers: "&lt;BR /&gt; echo " ---------------------------- "&lt;BR /&gt; echo "MFIX will be compiled with applicable optimization flags"&lt;BR /&gt; echo "if the next question is answered [no]. "&lt;BR /&gt; echo "Note that, default optimization flags are for "&lt;BR /&gt; echo " Pentium 4 processors ONLY! "&lt;BR /&gt; echo "You can enable non-Pentium 4 specific optimization flags "&lt;BR /&gt; echo "by editing line 14 in model/make_mfix to set : "&lt;BR /&gt; echo "P4_OPTIMIZE=0 "&lt;BR /&gt; echo "--------------------------------------------------------"&lt;BR /&gt; echo&lt;BR /&gt; fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;echo -n "Do you need debug version? (y/n) [no] "&lt;BR /&gt;read dbg_version&lt;BR /&gt;echo&lt;BR /&gt;echo -n "Force re-compilation of source files in run directory? (y/n) [no] "&lt;BR /&gt;read auto_compile&lt;BR /&gt; &lt;BR /&gt;case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt;&lt;BR /&gt; mpi_include="/usr/include"&lt;BR /&gt;&lt;BR /&gt; echo&lt;BR /&gt; echo -n "checking for mpif.h in the default directory $mpi_include"&lt;BR /&gt; if test -f "$mpi_include/mpif.h"&lt;BR /&gt; then&lt;BR /&gt;  echo&lt;BR /&gt; echo -n "using mpif.h from $mpi_include"&lt;BR /&gt; else&lt;BR /&gt;  echo&lt;BR /&gt; echo -n "input the location of the directory where mpif.h resides: "&lt;BR /&gt; read mpi_include&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; mpi_include="$mfix/dmp_modules/mpi_donothing"&lt;BR /&gt; echo " "&lt;BR /&gt; echo " "&lt;BR /&gt; if [ "$USE_TAU" ]&lt;BR /&gt; then &lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ---------------------"&lt;BR /&gt; echo "Current configuration of MFIX makefile for TAU can be only used in dmp mode"&lt;BR /&gt; echo "Continuing with compilation without TAU directives"&lt;BR /&gt; echo "--------------------------------------------------------"&lt;BR /&gt; echo " "&lt;BR /&gt; echo " "&lt;BR /&gt; unset USE_TAU&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt;esac&lt;BR /&gt;ln -sf "$mpi_include/mpif.h" .&lt;BR /&gt;&lt;BR /&gt;#-----&lt;BR /&gt;# Check if the mpif.h header is LAM/MPI header file or MPICH&lt;BR /&gt;# if it is determined to be LAM/MPI then terminate compilation with a msg&lt;BR /&gt;#-----&lt;BR /&gt; if [ "$USE_TAU" ]&lt;BR /&gt; then&lt;BR /&gt; if grep 'LAM' $mfix/mpif.h &amp;gt;/dev/null ; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- M P I L I B R A R Y E R R O R ----------"&lt;BR /&gt; echo " USE_TAU flag was enabled in make_mfix for inserting TAU profiling" &lt;BR /&gt; echo " directives automatically during compilation."&lt;BR /&gt; echo " "&lt;BR /&gt; echo " Current installation of TAU only works with MPICH library!"&lt;BR /&gt; echo " MPI header file, mpif.h was determined to be LAM/MPI header file!"&lt;BR /&gt; echo " Please either change your MPI settings to point for MPICH library"&lt;BR /&gt; echo " (if you would like to have TAU profiling) or "&lt;BR /&gt; echo " disable USE_TAU flag at line 19 of make_mfix"&lt;BR /&gt; echo "--------------------------------------------------------"&lt;BR /&gt; echo " "&lt;BR /&gt; exit&lt;BR /&gt; fi &lt;BR /&gt; fi&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;# Check if the system is a Linux system, if yes then ask the user which &lt;BR /&gt;# compiler to use &lt;BR /&gt;#&lt;BR /&gt; if test $opsys = "CYGWIN_NT-6.0"&lt;BR /&gt; then&lt;BR /&gt; echo&lt;BR /&gt; echo&lt;BR /&gt; echo "CYGWIN on Windows Detected"&lt;BR /&gt; echo&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo "MFIX Compilation directives available for following compilers:"&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo " [1] g95"&lt;BR /&gt; echo " [2] gfortran" &lt;BR /&gt; echo " "&lt;BR /&gt; echo -n "Select the compiler to compile MFIX? [2] "&lt;BR /&gt; read cygwin_compiler&lt;BR /&gt; case $cygwin_compiler in&lt;BR /&gt; 1 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "g95 compiler selected"&lt;BR /&gt; opsys="CYGWIN_NT-6.0-g95"&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "gfortran Compiler selected"&lt;BR /&gt; opsys="CYGWIN_NT-6.0-gfortran"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; fi&lt;BR /&gt;  &lt;BR /&gt; if test $opsys = "Linux"&lt;BR /&gt; then&lt;BR /&gt; if test $proctyp = "x86_64"&lt;BR /&gt; then&lt;BR /&gt; echo&lt;BR /&gt; echo&lt;BR /&gt; echo "64 bit Linux system detected, please select compiler."&lt;BR /&gt; echo&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo "MFIX Compilation directives available for following compilers:"&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo " [1] Intel Fortran Compiler (IFORT - FCE for 64 bit)"&lt;BR /&gt; echo " [2] Intel Fortran Compiler (IFORT - FCE for 64 bit) on AMD Opteron" &lt;BR /&gt; echo " [3] Portland Group Linux Fortran Compiler (pgf90)"&lt;BR /&gt; echo " [4] PathScale compiler (pathf90)"&lt;BR /&gt; echo " [5] Portland Group Linux Fortran Compiler (pgf90) on AMD Opteron" &lt;BR /&gt; echo " [6] Portland Group Linux Fortran Compiler (pgf90) on Cray XT3 at PSC" &lt;BR /&gt; echo " [7] Portland Group Linux Fortran Compiler (pgf90) on Cray XT4 at NCCS" &lt;BR /&gt; echo " [8] PathScale Compiler (pathf90) on Cray XT4 at NCCS" &lt;BR /&gt; echo " [9] Pathscale Compiler (pathf90) on Cray XT4 at NERSC"&lt;BR /&gt; echo " [10] IBM Fortran Compiler (xlf90) on Blue Gene at ANL ALCF"&lt;BR /&gt; echo " [11] gfortran"&lt;BR /&gt; echo " "&lt;BR /&gt; echo -n "Select the compiler to compile MFIX? [1] "&lt;BR /&gt; read lnx_compiler&lt;BR /&gt; case $lnx_compiler in&lt;BR /&gt; 1 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Compiler selected"&lt;BR /&gt; opsys="Linux_64_intel"&lt;BR /&gt; ;;&lt;BR /&gt; 2 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Compiler selected for AMD Opteron"&lt;BR /&gt; opsys="Linux_64_intel_amd64"&lt;BR /&gt; ;;&lt;BR /&gt; 3 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Portland Group Linux Fortran Compiler selected"&lt;BR /&gt; opsys="Linux_64_pgi"&lt;BR /&gt; ;;&lt;BR /&gt; 4 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "PathScale Compiler selected"&lt;BR /&gt; opsys="Linux_64_pscale"&lt;BR /&gt; ;;&lt;BR /&gt; 5 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Portland Group Linux Fortran Compiler for AMD Opteron selected"&lt;BR /&gt; opsys="Linux_64_pgi_amd64"&lt;BR /&gt; ;;&lt;BR /&gt; 6 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Portland Group Linux Fortran Compiler for Cray XT3 at PSC selected"&lt;BR /&gt; opsys="Linux_64_pgi_xt_psc"&lt;BR /&gt; ;;&lt;BR /&gt; 7 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Portland Group Linux Fortran Compiler for Cray XT4 at NCCS selected"&lt;BR /&gt; opsys="Linux_64_pgi_xt_nccs"&lt;BR /&gt; ;;&lt;BR /&gt; 8 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "PathScale Compiler (pathf90) on Cray XT4 at NCCS selected"&lt;BR /&gt; opsys="Linux_64_pscale_xt_nccs"&lt;BR /&gt; ;;&lt;BR /&gt; 9 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "PathScale Compiler (pathf90) on Cray XT4 at NERSC selected"&lt;BR /&gt; opsys="Linux_64_pscale_xt_nersc"&lt;BR /&gt; ;;&lt;BR /&gt; 10 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "IBM Fortran Compiler (xlf90) on Blue Gene at ANL ALCF"&lt;BR /&gt; opsys="Linux_64_xlf_anl"&lt;BR /&gt; ;;&lt;BR /&gt; 11 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Gfortran"&lt;BR /&gt; opsys="Linux_64_gfort"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Compiler selected"&lt;BR /&gt; opsys="Linux_64_intel"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;  &lt;BR /&gt; if test $opsys = "Linux_64_intel" -o $opsys = "Linux_64_intel_amd64"&lt;BR /&gt; then&lt;BR /&gt;&lt;BR /&gt; echo "______ If you get 'ifort: Command not found' _______"&lt;BR /&gt; echo "IFORT environment variables are not defined"&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Please add the following in your shell and rerun make_mfix"&lt;BR /&gt; echo "for .cshrc 'source path_to_fce_9.0/bin/ifortvars.csh'"&lt;BR /&gt; echo "for .kshrc or .bashrc 'source path_to_fce_9.0/bin/ifortvars.sh'"&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; if test $opsys = "Linux_64_pgi"&lt;BR /&gt;  then&lt;BR /&gt; if [ "$PGI" ]&lt;BR /&gt; then &lt;BR /&gt; echo " "&lt;BR /&gt; else&lt;BR /&gt;  echo "______ Environment variable ERROR _______"&lt;BR /&gt;  echo "Environment variable for Portland Group is not defined !"&lt;BR /&gt;  echo " "&lt;BR /&gt;  echo "Please define the following in your shell and rerun make_mfix"&lt;BR /&gt;  echo " setenv PGI your_path_of_PGI_root_directory"&lt;BR /&gt;  exit&lt;BR /&gt;  fi&lt;BR /&gt; fi  &lt;BR /&gt;&lt;BR /&gt; # Temporarily disable PSCALE and ACML env variable check&lt;BR /&gt; #if test $opsys = "Linux_64_pscale"&lt;BR /&gt; #then&lt;BR /&gt; # if [ "$PSCALE" ]&lt;BR /&gt; # then &lt;BR /&gt; echo " "&lt;BR /&gt; # else&lt;BR /&gt; # echo "______ Environment variable ERROR _______"&lt;BR /&gt; # echo "Environment variable for PathScale is not defined !"&lt;BR /&gt; # echo " "&lt;BR /&gt; # echo "Please define the following in your shell and rerun make_mfix"&lt;BR /&gt; # echo " setenv PSCALE your_path_of_PathScale_root_directory"&lt;BR /&gt; # exit&lt;BR /&gt; # fi&lt;BR /&gt; #fi&lt;BR /&gt;&lt;BR /&gt; #if test $opsys = "Linux_64_pscale" -o $opsys = "Linux_64_intel_amd64"&lt;BR /&gt; #then&lt;BR /&gt; # if [ "$ACML" ]&lt;BR /&gt; # then &lt;BR /&gt; # echo " "&lt;BR /&gt; # else&lt;BR /&gt; # echo "______ Environment variable ERROR _______"&lt;BR /&gt; # echo "Environment variable for ACML library is not defined !"&lt;BR /&gt; # echo " "&lt;BR /&gt; # echo "Please define the following in your shell and rerun make_mfix"&lt;BR /&gt; # echo " setenv ACML -L your_path_of_ACML_root_directory"&lt;BR /&gt; # echo "e.g. "&lt;BR /&gt; # echo " setenv ACML -L/usr/common/usg/acml/3.6.0/pathscale64/lib"  &lt;BR /&gt; # exit&lt;BR /&gt; # fi  &lt;BR /&gt; #fi&lt;BR /&gt;&lt;BR /&gt; else # test $opsys = "Linux" branch&lt;BR /&gt;&lt;BR /&gt; echo&lt;BR /&gt; echo&lt;BR /&gt; echo "32 bit Linux system detected, please select compiler."&lt;BR /&gt; echo&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo "MFIX Compilation directives available for following compilers:"&lt;BR /&gt; echo "=============================================================="&lt;BR /&gt; echo " [1] Portland Group Linux Fortran Compiler (pgf90)"&lt;BR /&gt; echo " [2] Intel Fortran Compiler version 9.X (ifort) "&lt;BR /&gt; echo " [3] Intel Fortran Compiler version 10.X (ifort)"&lt;BR /&gt; echo " "&lt;BR /&gt; echo -n "Select the compiler to compile MFIX? [2] "&lt;BR /&gt; read lnx_compiler&lt;BR /&gt;&lt;BR /&gt; case $lnx_compiler in&lt;BR /&gt; 1 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Portland Group Linux Fortran Compiler selected"&lt;BR /&gt; opsys="Linux_pgi"&lt;BR /&gt; ;;&lt;BR /&gt; 3 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Linux Fortran Compiler version 10.X selected"&lt;BR /&gt; opsys="Linux_ifc10"&lt;BR /&gt; ;;&lt;BR /&gt; 2 )&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Linux Fortran Compiler version 9.X selected"&lt;BR /&gt; opsys="Linux_ifc9"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; echo " "&lt;BR /&gt; echo "Intel Linux Fortran Compiler version 9.X selected"&lt;BR /&gt; opsys="Linux_ifc9"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; &lt;BR /&gt; fi # end of test $opsys = "Linux" branch&lt;BR /&gt; else&lt;BR /&gt; echo &lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;# Note: &lt;BR /&gt;# compile3 and compile_d3 flags are passed to makefile for compiling&lt;BR /&gt;# F77 based codes (e.g. ODEPACK ) for optimized and debug&lt;BR /&gt;# versions, respectively.&lt;BR /&gt;#&lt;BR /&gt; case $opsys in&lt;BR /&gt;&lt;BR /&gt; OSF1)&lt;BR /&gt; mach_file="OSF1.F"&lt;BR /&gt;&lt;BR /&gt; FORTRAN_CMD=f90&lt;BR /&gt; LINK_CMD=f90&lt;BR /&gt; libs_d="-lcxmlp -lmpi -lelan"&lt;BR /&gt; libs="-lcxmlp -lmpi -lelan"&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-omp"&lt;BR /&gt; compile_d="-c -I. -I$mpi_include -C -trapuv -g -free -nowarn -assume byterecl -convert big_endian "&lt;BR /&gt; compile_d2="-c -I. -I$mpi_include -C -trapuv -g -free -nowarn -assume byterecl -convert big_endian "&lt;BR /&gt; compile_d3="-c -I. -I$mpi_include -C -trapuv -g -free -nowarn -assume byterecl -convert big_endian "  &lt;BR /&gt; link_d="-C -g -nowarn -assume byterecl -convert big_endian"  &lt;BR /&gt;&lt;BR /&gt; compile="-c -I. -I$mpi_include -O5 -free -nowarn -assume byterecl -convert big_endian "&lt;BR /&gt; compile2="-c -I. -I$mpi_include -O5 -nowarn -assume byterecl -convert big_endian "&lt;BR /&gt; compile3="-c -I. -I$mpi_include -O5 -free -nowarn -assume byterecl -convert big_endian "  &lt;BR /&gt; link="-O5 -nowarn -assume byterecl -convert big_endian"&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; AIX)&lt;BR /&gt; mach_file="AIX.F"&lt;BR /&gt;&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=mpxlf90_r&lt;BR /&gt; LINK_CMD=mpxlf90_r&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=xlf90_r&lt;BR /&gt; LINK_CMD=xlf90_r&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; libs_d="-lblas "&lt;BR /&gt; libs="-lblas -lesslp2_r"&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;&lt;BR /&gt;#  =============================&lt;BR /&gt;#  use mpxlf90_r or xlf90_r&lt;BR /&gt;#  for thread safe code&lt;BR /&gt;#  =============================&lt;BR /&gt; omp="-qsmp=omp -qsmp=noauto -qnosave "&lt;BR /&gt;&lt;BR /&gt;#  =================================&lt;BR /&gt;#  the module directory cannot be on &lt;BR /&gt;#  a GPFS parallel file system&lt;BR /&gt;#  =================================&lt;BR /&gt;  moddir=/tmp/$USER&lt;BR /&gt; if test -d $moddir&lt;BR /&gt;  then&lt;BR /&gt;  touch $moddir&lt;BR /&gt;  else&lt;BR /&gt;  mkdir $moddir&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;  compile_common="-c -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -c -I. -freeform -I$moddir -qmoddir=$moddir "&lt;BR /&gt; compile_d="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"&lt;BR /&gt; compile_d2="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"&lt;BR /&gt; compile_d3="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"    &lt;BR /&gt; link_d="$compile_d"&lt;BR /&gt;&lt;BR /&gt; compile=" -O3 -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; compile2="-c -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -c -I. -I$moddir -qmoddir=$moddir -O3 -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; compile3=" -O3 -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; link="-O3 -qstrict -qarch=pwr3 -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -qtune=pwr3 -qcache=auto "&lt;BR /&gt;&lt;BR /&gt;#  ------------------&lt;BR /&gt;#  flags for inlining&lt;BR /&gt;#  ------------------&lt;BR /&gt;  inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt;  inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt;  inline_flags="-qipa=inline=auto -Q $inline_files"&lt;BR /&gt;  preinline_flags=" "&lt;BR /&gt;&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; IRIX64) &lt;BR /&gt;  mach_file="IRIXF90.F"&lt;BR /&gt;&lt;BR /&gt; FORTRAN_CMD=f90&lt;BR /&gt; LINK_CMD=f90&lt;BR /&gt; libs_d="-lblas -lmpi"&lt;BR /&gt; libs="-lblas -lmpi"&lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;  omp="-mp"&lt;BR /&gt;  compile_common="-c -I. -I$mpi_include -64 -freeform "&lt;BR /&gt; compile_d="$compile_common -C -trapuv -g "&lt;BR /&gt; compile_d2="$compile_common -C -trapuv -g "&lt;BR /&gt; compile_d3="$compile_common -C -trapuv -g "    &lt;BR /&gt; link_d="-IPA -64 -C -g"&lt;BR /&gt;&lt;BR /&gt; compile="$compile_common -O3 -mips4 "&lt;BR /&gt; compile2="-c -I. -I$mpi_include -64 -O3 -mips4"&lt;BR /&gt; compile3="$compile_common -O3 -mips4 "  &lt;BR /&gt; link="-IPA -64 -O3 -mips4"&lt;BR /&gt; MODULE_CODE=0&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt;# inline_flags=" -INLINE:must=compare_:file=compare.o -INLINE:must=eosg_:file=eosg.o -INLINE:must=phi_c_of_:file=discretize.o"&lt;BR /&gt;  inline_flags=" -IPA -INLINE:must=compare_,eosg_,phi_c_of_,xsi_:file=compare.o,eosg.o,discretize.o "&lt;BR /&gt; preinline_flags=" -IPA "&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;  &lt;BR /&gt; ULTRIX) &lt;BR /&gt;  mach_file="ULTRIX.F"&lt;BR /&gt; &lt;BR /&gt; FORTRAN_CMD=f90&lt;BR /&gt; LINK_CMD=f90&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f90&lt;BR /&gt;  omp="?"&lt;BR /&gt; compile_d="-c -I. -I$mpi_include -g -nowarn -freeform -convert big_endian"&lt;BR /&gt; compile_d2="-c -I. -I$mpi_include -g -nowarn -freeform -convert big_endian"&lt;BR /&gt; compile_d3="-c -I. -I$mpi_include -g -nowarn -freeform -convert big_endian"    &lt;BR /&gt; link_d="-g -nowarn -convert big_endian"&lt;BR /&gt; compile="-c -I. -I$mpi_include -nowarn -O2 -freeform -convert big_endian"&lt;BR /&gt; compile2="-c -I. -I$mpi_include -nowarn -O2 -convert big_endian"&lt;BR /&gt; compile3="-c -I. -I$mpi_include -nowarn -O2 -freeform -convert big_endian"  &lt;BR /&gt; link="-O2 -nowarn -convert big_endian"&lt;BR /&gt; MODULE_CODE=0&lt;BR /&gt;  &lt;BR /&gt; ;;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; Linux_pgi)&lt;BR /&gt;  mach_file="LINUX.F"&lt;BR /&gt;  &lt;BR /&gt; FORTRAN_CMD=pgf90&lt;BR /&gt; LINK_CMD=pgf90&lt;BR /&gt; libs_d="-lblas odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="-lblas odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;  omp="-mp"&lt;BR /&gt;  compile_common="-c -I. -Mnosave -Mfreeform -Mrecursive -Mreentrant -byteswapio"&lt;BR /&gt; compile_d=" -g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk $compile_common"&lt;BR /&gt; compile_d2=" -g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk $compile_common"  &lt;BR /&gt; compile_d3=" -g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk $compile_common"  &lt;BR /&gt; link_d=" "&lt;BR /&gt; compile=" -O -Mdalign $compile_common"&lt;BR /&gt; compile2="-O1 -Mdalign -c -I. -Mnosave -Mrecursive -Mreentrant -byteswapio"&lt;BR /&gt; compile3=" -O -Mdalign $compile_common"&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;  &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt;# inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_intel)&lt;BR /&gt; #-----------&lt;BR /&gt; # Set the supported compiler version under 64 bit platforms&lt;BR /&gt; #-----------&lt;BR /&gt; # Intel version 9.X&lt;BR /&gt; # opsys_intel="Linux_64_ifc9"&lt;BR /&gt; # Intel version 10.X&lt;BR /&gt; opsys_intel="Linux_64_ifc10"&lt;BR /&gt;&lt;BR /&gt; #-----------&lt;BR /&gt; # Set MPI library used as Intel's MPI library uses mpiifort instead of mpif90 &lt;BR /&gt; #-----------&lt;BR /&gt; if [ "$INTEL_MPI" ]&lt;BR /&gt; then&lt;BR /&gt; # Intel's MPI library (commercial version)&lt;BR /&gt; mpi_type=mpi_intel&lt;BR /&gt; else&lt;BR /&gt; # Generic MPICH library&lt;BR /&gt; mpi_type=mpich&lt;BR /&gt; fi&lt;BR /&gt; #-----------&lt;BR /&gt; # Check if the Intel Linux compiler specific machine.f exists&lt;BR /&gt; #-----------&lt;BR /&gt; if test -f "$mfix/LINUX_intel.F"&lt;BR /&gt; then&lt;BR /&gt; mach_file="LINUX_intel.F"&lt;BR /&gt; else&lt;BR /&gt; echo LINUX_intel.F "not found in $mfix"&lt;BR /&gt; exit&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or ifort as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; case $mpi_type in&lt;BR /&gt; mpich )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; mpi_intel )&lt;BR /&gt; FORTRAN_CMD=mpiifort&lt;BR /&gt; LINK_CMD=mpiifort&lt;BR /&gt;#DEBUG&lt;BR /&gt;# unsetenv MKLROOT&lt;BR /&gt;# echo $MKLROOT&lt;BR /&gt; if [ "$MKLROOT" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MPICH_DIR/lib64 -lmpi -L $MKLROOT/lib/em64t -lmkl_lapack -lmkl_em64t -lmkl_core -lvml -lguide"&lt;BR /&gt; libs="odepack.a -L $MPICH_DIR/lib64 -lmpi -L $MKLROOT/lib/em64t -lmkl_lapack -lmkl_em64t -lmkl_core -lvml -lguide" &lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a -L $MPICH_DIR/lib64 -lmpi blas90.a dgtsv90.a "&lt;BR /&gt; libs="odepack.a -L $MPICH_DIR/lib64 -lmpi blas90.a dgtsv90.a "&lt;BR /&gt;&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt;   # Temporarily disable MPIHOME env variable check&lt;BR /&gt; #if [ "$MPIHOME" ]&lt;BR /&gt; #then &lt;BR /&gt; # echo " "&lt;BR /&gt; #else&lt;BR /&gt;  # echo "______ Environment variable ERROR _______"&lt;BR /&gt;  # echo "Environment variable for MPI home directory is not defined !"&lt;BR /&gt;  # echo " "&lt;BR /&gt;  # echo "Please define the following in your shell and rerun make_mfix"&lt;BR /&gt;  # echo " setenv MPIHOME your_path_of_MPI_root_directory"&lt;BR /&gt;  # echo " e.g. setenv MPIHOME /opt/MPI/mpich2_intel_opt"  &lt;BR /&gt;  # exit&lt;BR /&gt;  #fi&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=ifort&lt;BR /&gt; LINK_CMD=ifort&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt;   else &lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;   fi   &lt;BR /&gt; if [ "$MKLROOT" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MKLROOT/lib/em64t -lmkl_lapack -lmkl_em64t -lmkl_core -lvml -lguide -lpthread"&lt;BR /&gt; libs="odepack.a -L $MKLROOT/lib/em64t -lmkl_lapack -lmkl_em64t -lmkl_core -lvml -lguide -lpthread"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a "&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a "&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; esac  &lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-openmp -assume cc_omp"&lt;BR /&gt; #============================&lt;BR /&gt; # Set the common compiler flags that are common for all three sets &lt;BR /&gt; #============================&lt;BR /&gt; case $opsys_intel in&lt;BR /&gt; Linux_64_ifc9 )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_64_ifc10 )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; case $opsys_intel in&lt;BR /&gt; Linux_64_ifc9 )&lt;BR /&gt; optimize_common="-O3 -axKW -tpp7"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_64_ifc10 )&lt;BR /&gt; #optimize_common="-fast"&lt;BR /&gt; optimize_common="-O3 -axW -ip -fp-model precise -ftz"&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; optimize_common="-O3 -axKW -tpp7"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; #============================&lt;BR /&gt; # Set ALL debug compile flags&lt;BR /&gt; #============================&lt;BR /&gt; compile_d="-g -c -I. -FR $compile_common_d"&lt;BR /&gt; compile_d2="-g -c -I. -FR $compile_common_d"&lt;BR /&gt; compile_d3="-g -c -I. $compile_common_d"&lt;BR /&gt; link_d="-I. "&lt;BR /&gt; #============================&lt;BR /&gt; # Set ALL optimized compile flags&lt;BR /&gt; #============================&lt;BR /&gt; case $opsys_intel in&lt;BR /&gt; Linux_64_ifc9 )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR $optimize_common"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; Linux_64_ifc10 )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR -O0 -axW -ip -fp-model precise -ftz"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR $optimize_common"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; # compile_common="-c -O3 -axP -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl -FR"&lt;BR /&gt; # compile_d="-g -c -convert big_endian -assume byterecl -I. -FR -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; # compile_d2="-g -c -convert big_endian -assume byterecl -I. -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; # compile_d3="-g -c -convert big_endian -assume byterecl -I. -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; # link_d="-I. "&lt;BR /&gt; # compile="$compile_common"&lt;BR /&gt; # #compile2="-c -O3 -axP -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; # compile2="-c -O0 -axP -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; # compile3="-c -O3 -axP -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; # link="-I. "&lt;BR /&gt;&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_intel_amd64)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt;&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " You may need to update the paths under libs_d and libs "&lt;BR /&gt; echo " variables in make_mfix; search for Linux_64_intel) text block"&lt;BR /&gt; echo " with the corresponding paths on your local system if"&lt;BR /&gt; echo " if you encounter problems during the link phase"&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " "&lt;BR /&gt; fi&lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or ifort as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt;   &lt;BR /&gt; #if [ "$MPIHOME" ]&lt;BR /&gt; #then &lt;BR /&gt; # echo " "&lt;BR /&gt; #else&lt;BR /&gt;  # echo "______ Environment variable ERROR _______"&lt;BR /&gt;  # echo "Environment variable for MPI home directory is not defined !"&lt;BR /&gt;  # echo " "&lt;BR /&gt;  # echo "Please define the following in your shell and rerun make_mfix"&lt;BR /&gt;  # echo " setenv MPIHOME your_path_of_MPI_root_directory"&lt;BR /&gt;  # echo " e.g. setenv MPIHOME /opt/MPI/mpich2_intel_opt"  &lt;BR /&gt;  # exit&lt;BR /&gt;  #fi&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $MPIHOME/include -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt;   else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt;   fi&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=ifort&lt;BR /&gt; LINK_CMD=ifort&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt;   else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;   fi   &lt;BR /&gt; ;;&lt;BR /&gt; esac  &lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-openmp -assume cc_omp"&lt;BR /&gt; compile_common="-I. -w -w95 -convert big_endian -assume byterecl -FR"  &lt;BR /&gt;# optimize_common="-O3 -xW -ipo -no-prec-div -static -V"&lt;BR /&gt; optimize_common="-O3 -xW"  &lt;BR /&gt;  &lt;BR /&gt; compile_d="-g -c -convert big_endian -assume byterecl -I. -FR -O0 -fpe0 -d1 -CB "&lt;BR /&gt; compile_d2="-g -c -convert big_endian -assume byterecl -I. -O0 -fpe0 -d1 -CB "&lt;BR /&gt; compile_d3="-g -c -convert big_endian -assume byterecl -I. -O0 -fpe0 -d1 -CB "&lt;BR /&gt; link_d="-I. "&lt;BR /&gt;  &lt;BR /&gt; compile="-c $optimize_common $compile_common"&lt;BR /&gt; compile2="-c $optimize_common $compile_common"&lt;BR /&gt; compile3="-c $optimize_common -I. -w -w95 -i_dynamic -convert big_endian -assume byterecl"  &lt;BR /&gt; link="-I. "&lt;BR /&gt;  &lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; Linux_64_pgi)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt;&lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pgf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=pgf90&lt;BR /&gt; LINK_CMD=pgf90&lt;BR /&gt; ;;&lt;BR /&gt; esac &lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_common="-c -I. -Mnosave -Mfreeform -Mrecursive -Mreentrant -byteswapio"&lt;BR /&gt; compile_d=" -g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk $compile_common" link_d=" "&lt;BR /&gt; compile=" -O -Mdalign $compile_common"&lt;BR /&gt; compile2="-O1 -Mdalign $compile_common"&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt;# inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;#===========  &lt;BR /&gt;# pgf90 compiler on AMD64 &lt;BR /&gt;#===========&lt;BR /&gt; Linux_64_pgi_amd64)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt; proc_type="amd64"&lt;BR /&gt;  &lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pgf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt;   else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt;   fi&lt;BR /&gt;   &lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=pgf90&lt;BR /&gt; LINK_CMD=pgf90&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $ACML/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $ACML/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt;    else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;   fi   &lt;BR /&gt;   &lt;BR /&gt; ;;&lt;BR /&gt; esac &lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; optimize_common="-Minfo=inline,loop -tp $proc_type -fastsse -Mipa=fast -Mipa=inline -Bstatic"&lt;BR /&gt; compile_common="-c -I. -Mnosave -Mfreeform -byteswapio -Mkeepasm"&lt;BR /&gt; compile="$optimize_common -Mdalign $compile_common"&lt;BR /&gt; compile2="-O1 -Mdalign $compile_common"&lt;BR /&gt; compile3="-c -I. $optimize_common -Mdalign -Mnosave -byteswapio"&lt;BR /&gt; link="-Mipa=fast -Mipa=inline"  &lt;BR /&gt;&lt;BR /&gt; compile_common_d="-c -I. -Mnosave -byteswapio"&lt;BR /&gt; debug_common="-g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk -Ktrap=fp"&lt;BR /&gt; compile_d=" $debug_common -Mfreeform $compile_common_d"&lt;BR /&gt; compile_d2=" $debug_common -Mfreeform $compile_common_d"&lt;BR /&gt; compile_d3=" $debug_common $compile_common_d"&lt;BR /&gt; link_d=" "&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o equal.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f equal.f eosg.f discretize.f "&lt;BR /&gt;# inline_flags=" "&lt;BR /&gt; inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;  &lt;BR /&gt;&lt;BR /&gt;#XT_PSC &lt;BR /&gt;#######&lt;BR /&gt;#INFO_2 Begin Cray XT3 @ PSC related compiler and compilation flag settings&lt;BR /&gt;#######&lt;BR /&gt; Linux_64_pgi_xt_psc)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt; proc_type="amd64e"&lt;BR /&gt;  &lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pgf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=ftn&lt;BR /&gt; LINK_CMD=ftn&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt;#&lt;BR /&gt;#INFO_2.1 Change compiler for serial run by editing FORTRAN_CMD and LINK_CMD&lt;BR /&gt;#  &lt;BR /&gt; FORTRAN_CMD=/opt/xt-pe/1.4.37/bin/snos64/qk-pgf90&lt;BR /&gt; LINK_CMD=/opt/xt-pe/1.4.37/bin/snos64/qk-pgf90&lt;BR /&gt; ;;&lt;BR /&gt; esac &lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " You may need to update the paths under libs_d and libs "&lt;BR /&gt; echo " variables in make_mfix; search for Linux_64_pgi_amd64) text block"&lt;BR /&gt; echo " with the corresponding paths on your local system if"&lt;BR /&gt; echo " if you encounter problems during the link phase"&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " "&lt;BR /&gt; fi&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; libs_d="odepack.a -L$ACML_DIR/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L$ACML_DIR/lib -lacml -lacml_mv"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; libs_d="odepack.a -L$ACML_DIR/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L$ACML_DIR/lib -lacml -lacml_mv"&lt;BR /&gt; ;;&lt;BR /&gt; esac &lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt;#&lt;BR /&gt; optimize_common="-Minfo=inline,loop -tp $proc_type -fastsse -Mipa=fast -Mipa=inline -Bstatic"&lt;BR /&gt; compile_common="-c -I. -Mdalign -Mnosave -byteswapio"&lt;BR /&gt; # Activate for compiler based profiling&lt;BR /&gt; #profile_common="-Mprof=func"&lt;BR /&gt;   profile_common=" "&lt;BR /&gt;&lt;BR /&gt; compile="$optimize_common $compile_common -Mfreeform $profile_common"&lt;BR /&gt; compile2="-O1 -Mdalign $compile_common -Mfreeform $profile_common"&lt;BR /&gt; compile3="-c -I. $optimize_common $compile_common $profile_common"&lt;BR /&gt; link="-Mipa=fast -Mipa=inline $profile_common"  &lt;BR /&gt;  &lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o equal.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f equal.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt;#XT_NCCS&lt;BR /&gt;#######&lt;BR /&gt;#INFO_3 Begin Cray XT4 @ NCCS related compiler and compilation flag settings&lt;BR /&gt;#######&lt;BR /&gt; Linux_64_pgi_xt_nccs)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt; proc_type="amd64e"&lt;BR /&gt; proc_type="k8-64"&lt;BR /&gt;  &lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pgf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; #FORTRAN_CMD=mpif90&lt;BR /&gt; #LINK_CMD=mpif90&lt;BR /&gt; FORTRAN_CMD=ftn&lt;BR /&gt; LINK_CMD=ftn&lt;BR /&gt; if [ "$ACML_DIR" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $ACML_DIR/pgi6/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -lpapi -lm -L $ACML_DIR/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt;   else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -lhwpc -lpapi -lm"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -lhwpc -lpapi -lm"&lt;BR /&gt;   fi   &lt;BR /&gt;   &lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;The second part in the next post.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Sep 2010 12:04:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749523#M6394</guid>
      <dc:creator>giuseppec</dc:creator>
      <dc:date>2010-09-14T12:04:34Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749524#M6395</link>
      <description>Second part of file make_mfix:&lt;BR /&gt;&lt;BR /&gt;#INFO_3.1 Change compiler for serial run by editing FORTRAN_CMD and LINK_CMD&lt;BR /&gt;#  &lt;BR /&gt; FORTRAN_CMD=/opt/xt-pe/1.5.31/bin/snos64/qk-pgf90&lt;BR /&gt; LINK_CMD=/opt/xt-pe/1.5.31/bin/snos64/qk-pgf90&lt;BR /&gt; if [ "$ACML_DIR" ]&lt;BR /&gt; then &lt;BR /&gt; libs_d="odepack.a -L $ACML_DIR/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -lhwpc -lpapi -L $ACML_DIR/pgi64/lib -lacml -lacml_mv"&lt;BR /&gt;   else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;   fi   &lt;BR /&gt;   &lt;BR /&gt; ;;&lt;BR /&gt; esac &lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt;&lt;BR /&gt;# optimize_common="-Minfo=inline,loop -tp $proc_type -fastsse -Mipa=fast -Mipa=inline -Mdalign -Bstatic"&lt;BR /&gt; optimize_common="-Minfo=inline,loop -tp $proc_type -fastsse -Mipa=fast -Mipa=inline -Mdalign"&lt;BR /&gt; # Activate for compiler based profiling&lt;BR /&gt; # profile_common="-Mprof=func"&lt;BR /&gt; profile_common=" "  &lt;BR /&gt; compile_common="-c -I. -I/opt/xt-tools/craypat/3.1.2/cpatx/include -Mnosave -byteswapio "&lt;BR /&gt;&lt;BR /&gt; compile="$optimize_common $profile_common -Mfreeform $compile_common"&lt;BR /&gt; compile2="$optimize_common $profile_common -Mfreeform $compile_common"&lt;BR /&gt; compile3="$optimize_common $profile_common $compile_common"&lt;BR /&gt; link="-Mipa=fast -Mipa=inline $profile_common"  &lt;BR /&gt;&lt;BR /&gt; compile_common_d="-c -I. -Mnosave -byteswapio -target=catamount"&lt;BR /&gt;  debug_common="-g -Mbounds -Mchkptr -Mchkfpstk -Mchkstk"&lt;BR /&gt; compile_d=" $debug_common -Mfreeform $compile_common_d"&lt;BR /&gt; compile_d2=" $debug_common -Mfreeform $compile_common_d"&lt;BR /&gt; compile_d3=" $debug_common $compile_common_d"&lt;BR /&gt;  link_d=" "&lt;BR /&gt;  &lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o equal.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f equal.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;  &lt;BR /&gt; Linux_64_pscale)&lt;BR /&gt; mach_file="LINUX.F" &lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pathf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD=mpif90&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=$PSCALE/bin/pathf90&lt;BR /&gt; LINK_CMD=$PSCALE/bin/pathf90&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;  if [ "$ACML" ]&lt;BR /&gt;  then&lt;BR /&gt;  echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " You may need to update the paths under libs_d and libs "&lt;BR /&gt;  echo " variables in make_mfix; search for Linux_64_pscale) text block"&lt;BR /&gt;  echo " with the corresponding paths on your local system if"&lt;BR /&gt;  echo " if you encounter problems during the link phase"&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt;  echo " "&lt;BR /&gt;  fi &lt;BR /&gt;  &lt;BR /&gt; libs_d="-lfrtbegin -lg2c odepack.a -L $ACML/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="-lfrtbegin -lg2c -L $MPIHOME/lib -lmpich odepack.a -L $ACML/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_common_dbg="-c -I. -fno-math-errno -static-data -Wno-globals"&lt;BR /&gt; compile_common="-c -I. -O3 -OPT:Ofast -fno-math-errno -static-data -msse2 -Wno-globals -fno-second-underscore"&lt;BR /&gt;&lt;BR /&gt; compile_d=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d2=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d3=" -g $compile_common_dbg"&lt;BR /&gt; link_d=" "&lt;BR /&gt;&lt;BR /&gt; compile="$compile_common -freeform"&lt;BR /&gt; compile2="$compile_common -freeform"&lt;BR /&gt; compile3="$compile_common"&lt;BR /&gt; link=" "&lt;BR /&gt;&lt;BR /&gt; MODULE_CODE=0&lt;BR /&gt; &lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; &lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_pscale_xt_nccs)&lt;BR /&gt; mach_file="LINUX.F" &lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pathf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=ftn&lt;BR /&gt; LINK_CMD=ftn&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=$PSCALE/bin/pathf90&lt;BR /&gt; LINK_CMD=$PSCALE/bin/pathf90&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " You may need to update the paths under libs_d and libs "&lt;BR /&gt; echo " variables in make_mfix; search for Linux_64_pscale) text block"&lt;BR /&gt; echo " with the corresponding paths on your local system if"&lt;BR /&gt; echo " if you encounter problems during the link phase"&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " "&lt;BR /&gt; fi &lt;BR /&gt; &lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; libs_d="-lfrtbegin -lg2c odepack.a -lhwpc -lpapi -L $ACML/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="-lfrtbegin -lg2c odepack.a -lhwpc -lpapi -L $ACML/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; libs_d="-lfrtbegin -lg2c odepack.a $ACML"&lt;BR /&gt; libs="-lfrtbegin -lg2c odepack.a $ACML"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_common_dbg="-c -I. -fno-math-errno -static-data -fno-second-underscore -byteswapio -trapuv"&lt;BR /&gt;# xt3 : -O3 -LNO:prefetch=2 -LNO:prefetch_ahead=9 -LNO:fusion=2 -CG:use_prefetchnta=on&lt;BR /&gt; compile_common="-c -I. -I /opt/xt-tools/craypat/3.1.2/cpatx/include -march=opteron -O3 -OPT:Ofast -ffast-math -funroll-loops -fno-math-errno -static-data -fno-second-underscore -byteswapio"&lt;BR /&gt; #compile_common="-c -I. -I /opt/xt-tools/craypat/3.1.2/cpatx/include -OPT:Ofast -fno-math-errno -msse2 -fno-second-underscore -byteswapio"&lt;BR /&gt; &lt;BR /&gt; compile_d=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d2=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d3=" -g $compile_common_dbg"&lt;BR /&gt; link_d=" "&lt;BR /&gt;&lt;BR /&gt; compile="$compile_common -freeform"&lt;BR /&gt; compile2="$compile_common -freeform"&lt;BR /&gt; compile3="$compile_common"&lt;BR /&gt; link=" "&lt;BR /&gt;&lt;BR /&gt; MODULE_CODE=0&lt;BR /&gt;&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_pscale_xt_nersc)&lt;BR /&gt; mach_file="LINUX.F"&lt;BR /&gt; #-----------&lt;BR /&gt; # Decide to use mpif90 or pathf90 as the compiler &amp;amp; linker command&lt;BR /&gt; #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=ftn&lt;BR /&gt; LINK_CMD=ftn&lt;BR /&gt; ;; &lt;BR /&gt; *)&lt;BR /&gt; FORTRAN_CMD=ftn&lt;BR /&gt; LINK_CMD=ftn&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; if [ "$ACML_DIR" ]&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " You may need to update the paths under libs_d and libs "&lt;BR /&gt; echo " variables in make_mfix; search for Linux_64_pscale) text block"&lt;BR /&gt; echo " with the corresponding paths on your local system if"&lt;BR /&gt; echo " if you encounter problems during the link phase"&lt;BR /&gt; echo "-------------- W A R N I N G ! ----------"&lt;BR /&gt; echo " "&lt;BR /&gt; fi&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y ) &lt;BR /&gt; libs_d="-lfrtbegin -lg2c odepack.a -lhwpc -lpapi -L $ACML_DIR/pathscale64/lib -lacml -lacml_mv" &lt;BR /&gt; libs="-lfrtbegin -lg2c odepack.a -lhwpc -lpapi -L $ACML_DIR/pathscale64/lib -lacml -l acml_mv" &lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; libs_d="-lfrtbegin -lg2c odepack.a $ACML_DIR/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="-lfrtbegin -lg2c odepack.a $ACML_DIR/pathscale64/lib -lacml -lacml_mv"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_common_dbg="-c -I. -fno-math-errno -static-data -fno-second-underscore -byteswapio -trapuv"&lt;BR /&gt;# xt3 : -O3 -LNO:prefetch=2 -LNO:prefetch_ahead=9 -LNO:fusion=2 -CG:use_prefetchnta=on&lt;BR /&gt; compile_common="-c -I. -I $PAT_ROOT/include -march=opteron -O3 -OPT:Ofast -ffast-math -funroll-loops -fno-math-errno -static-data -fno-second-underscore -byteswapio"&lt;BR /&gt; #compile_common="-c -I. -I /opt/xt-tools/craypat/3.1.2/cpatx/include -OPT:Ofast -fno-math-errno -msse2 -fno-second-underscore -byteswapio"&lt;BR /&gt; &lt;BR /&gt; compile_d=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d2=" -g $compile_common_dbg -freeform"&lt;BR /&gt; compile_d3=" -g $compile_common_dbg"&lt;BR /&gt; link_d=" "&lt;BR /&gt;&lt;BR /&gt; compile="$compile_common -freeform"&lt;BR /&gt; compile2="$compile_common -freeform"&lt;BR /&gt; compile3="$compile_common"&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=0&lt;BR /&gt;&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_xlf_anl)&lt;BR /&gt; mach_file="AIX.F"&lt;BR /&gt;&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; FORTRAN_CMD=/bgsys/drivers/ppcfloor/comm/bin/mpixlf90_r&lt;BR /&gt; F77_CMD=/bgsys/drivers/ppcfloor/comm/bin/mpixlf77_r&lt;BR /&gt; LINK_CMD=/bgsys/drivers/ppcfloor/comm/bin/mpixlf90_r&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; #FORTRAN_CMD=xlf90_r&lt;BR /&gt; #F77_CMD=xlf_r&lt;BR /&gt; #LINK_CMD=xlf90_r&lt;BR /&gt; # compute node&lt;BR /&gt; FORTRAN_CMD=&lt;BR /&gt; F77_CMD=&lt;BR /&gt; LINK_CMD=xlf90_r&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; #libs_d="-lblas "&lt;BR /&gt; #libs_d="-lblas440 -llapack440"&lt;BR /&gt; #libs_d="blas90.a odepack.a dgtsv90.a"&lt;BR /&gt; libs_d="blas90.a odepack.a dgtsv90.a -L/bgsys/ibm_essl/sles10/prod/opt/ibmmath/essl/4.3/lib -lesslbg"&lt;BR /&gt; libs="-lblas -lesslp2_r"&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;&lt;BR /&gt;# =============================&lt;BR /&gt;# use mpxlf90_r or xlf90_r&lt;BR /&gt;# for thread safe code&lt;BR /&gt;# =============================&lt;BR /&gt; omp="-qsmp=omp -qsmp=noauto -qnosave "&lt;BR /&gt;&lt;BR /&gt;# =================================&lt;BR /&gt;# the module directory cannot be on&lt;BR /&gt;# a GPFS parallel file system&lt;BR /&gt;# =================================&lt;BR /&gt;&lt;BR /&gt; moddir=/tmp/$USER&lt;BR /&gt; if test -d $moddir&lt;BR /&gt; then&lt;BR /&gt; touch $moddir&lt;BR /&gt; else&lt;BR /&gt; mkdir $moddir&lt;BR /&gt; fi&lt;BR /&gt; compile_common="-c -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -c -I. -freeform -I$moddir -qmoddir=$moddir "&lt;BR /&gt;# AIX Settings&lt;BR /&gt;# compile_d="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"&lt;BR /&gt;# compile_d2="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"&lt;BR /&gt;# compile_d3="-C -g -qinitauto=FF -qflttrap -freeform $compile_common"&lt;BR /&gt;# link_d="$compile_d"&lt;BR /&gt; &lt;BR /&gt; compile_common="-c -I. -qlanglvl=90std"&lt;BR /&gt; compile_d="-C -g -qinitauto=FF -freeform $compile_common"&lt;BR /&gt; compile_d2="-C -g -qinitauto=FF -freeform $compile_common"&lt;BR /&gt; compile_d3="-C -g -qinitauto=FF $compile_common"&lt;BR /&gt; link_d=""&lt;BR /&gt;&lt;BR /&gt; compile_opt="-O2 -qarch=450 -qtune=450"&lt;BR /&gt; compile=" -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; compile2="-c -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -c -I. -I$moddir -qmoddir=$moddir -O3 -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; compile3=" -O3 -qhot -qstrict -qarch=pwr3 -qtune=pwr3 -qcache=auto $compile_common"&lt;BR /&gt; link="-O3 -qstrict -qarch=pwr3 -q32 -bmaxstack:2000000000 -bmaxdata:2000000000 -qtune=pwr3 -&lt;BR /&gt;qcache=auto " &lt;BR /&gt;&lt;BR /&gt;# ------------------&lt;BR /&gt;# flags for inlining&lt;BR /&gt;# ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; inline_flags="-qipa=inline=auto -Q $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; &lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; Linux_64_gfort )&lt;BR /&gt;&lt;BR /&gt; FORTRAN_CMD=gfortran&lt;BR /&gt; LINK_CMD=gfortran&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_d="-c -g"&lt;BR /&gt; link_d="-g"&lt;BR /&gt; compile="-c -I. -fconvert='big-endian' -ffree-form -I$mpi_include -O3 "&lt;BR /&gt; compile2="-c -I. -fconvert='big-endian' -ffree-form -I$mpi_include -O1 "&lt;BR /&gt; compile3="-c -I. -fconvert='big-endian' -I$mpi_include -O1 "&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;     &lt;BR /&gt; Linux_ifc9 | Linux_ifc10 )&lt;BR /&gt; #-----------&lt;BR /&gt; # Set MPI library used as Intel's MPI library uses mpiifort instead of mpif90&lt;BR /&gt; #-----------&lt;BR /&gt; # Generic MPICH library&lt;BR /&gt; # mpi_type=mpich&lt;BR /&gt; # Intel's MPI library (commercial version)&lt;BR /&gt; mpi_type=mpi_intel&lt;BR /&gt;&lt;BR /&gt; #-----------&lt;BR /&gt; # Check if the Intel Linux compiler specific machine.f exists&lt;BR /&gt;  #-----------&lt;BR /&gt;  if test -f "$mfix/LINUX_intel.F"&lt;BR /&gt;  then&lt;BR /&gt; mach_file="LINUX_intel.F"  &lt;BR /&gt;  else&lt;BR /&gt;  echo LINUX_intel.F "not found in $mfix"&lt;BR /&gt;  exit&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt; #-----------  &lt;BR /&gt; # Decide to use mpif90 or ifc as the compiler &amp;amp; linker command&lt;BR /&gt;  #-----------&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; case $mpi_type in&lt;BR /&gt; mpich )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD="mpif90 -lsvml"&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; mpi_intel )&lt;BR /&gt; FORTRAN_CMD=mpiifort&lt;BR /&gt; LINK_CMD="mpiifort -lsvml"&lt;BR /&gt; if [ "$MKLROOT" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MPICH_DIR/lib -lmpi -L $MKLROOT/lib/32 -lmkl_solver -lmkl_lapack -lvml -lguide"&lt;BR /&gt; libs="odepack.a -L $MPICH_DIR/lib -lmpi -L $MKLROOT/lib/32 -lmkl_solver -lmkl_lapack -lvml -lguide"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a -L $MPICH_DIR/lib -lmpi blas90.a dgtsv90.a "&lt;BR /&gt; libs="odepack.a -L $MPICH_DIR/lib -lmpi blas90.a dgtsv90.a "&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; FORTRAN_CMD=mpif90&lt;BR /&gt; LINK_CMD="mpif90 -lsvml"&lt;BR /&gt; if [ "$ACML" ]&lt;BR /&gt; then&lt;BR /&gt; libs_d="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; libs="odepack.a -L $MPIHOME/lib -lmpich -L $ACML/ifort64/lib -lacml -lacml_mv"&lt;BR /&gt; else&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a -L $MPIHOME/lib -lmpich"&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; case $opsys in&lt;BR /&gt; Linux_ifc9 )&lt;BR /&gt; FORTRAN_CMD=ifort&lt;BR /&gt; LINK_CMD="ifort -lsvml"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_ifc10 )&lt;BR /&gt; FORTRAN_CMD=ifort&lt;BR /&gt; LINK_CMD="ifort -lsvml"&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; FORTRAN_CMD=ifort&lt;BR /&gt; LINK_CMD="ifort -lsvml"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-openmp -assume cc_omp"&lt;BR /&gt;&lt;BR /&gt; libs_d='odepack.a blas90.a dgtsv90.a'&lt;BR /&gt; libs='odepack.a blas90.a dgtsv90.a'&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt; #============================&lt;BR /&gt; # Check the big endian environment variable &lt;BR /&gt; #============================&lt;BR /&gt; if [ "$F_UFMTENDIAN" ]&lt;BR /&gt; then&lt;BR /&gt; #echo "Environment variable, F_UFMTENDIAN is found"&lt;BR /&gt;&lt;BR /&gt; if ( expr "$F_UFMTENDIAN" = "big" )&lt;BR /&gt; then&lt;BR /&gt; echo "*********************************************"&lt;BR /&gt; echo "Big Endian environment set for Intel compiler"&lt;BR /&gt; echo "*********************************************"&lt;BR /&gt; else&lt;BR /&gt; echo "F_UFMTENDIAN environment variable IS NOT set to big endian!"&lt;BR /&gt; echo "Check the current value of F_UFMTENDIAN variable by:"&lt;BR /&gt;   echo "echo \$F_UFMTENDIAN"&lt;BR /&gt;   echo "then issue the following Cshell command at the prompt and "&lt;BR /&gt; echo "recompile:"&lt;BR /&gt; echo "setenv F_UFMTENDIAN big for csh/tcsh"&lt;BR /&gt; echo "export F_UFMTENDIAN=big for ksh/bash"&lt;BR /&gt;   echo " "&lt;BR /&gt; echo "Aborting compilation"&lt;BR /&gt;   exit&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; else # if [ "$F_UFMTENDIAN" ] branch&lt;BR /&gt;&lt;BR /&gt; echo "Environment variable for big endian IS NOT set!"&lt;BR /&gt; echo "Issue the following Cshell command at the prompt and "&lt;BR /&gt; echo "then recompile:"&lt;BR /&gt; echo "setenv F_UFMTENDIAN big for csh/tcsh"&lt;BR /&gt; echo "export F_UFMTENDIAN=big for ksh/bash"&lt;BR /&gt;  echo " "&lt;BR /&gt; echo "Aborting compilation" &lt;BR /&gt;  exit&lt;BR /&gt;&lt;BR /&gt; fi # eof if [ "$F_UFMTENDIAN" ] branch&lt;BR /&gt;&lt;BR /&gt; #============================&lt;BR /&gt; # Set the common compiler flags that are common for all three sets &lt;BR /&gt; #============================&lt;BR /&gt; case $opsys in&lt;BR /&gt; Linux_ifc9 )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_ifc10 )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; compile_common="-c -I. -w -w95 -i_dynamic -ip -convert big_endian -assume byterecl"&lt;BR /&gt; compile_common_d="-convert big_endian -assume byterecl -O0 -fpe0 -d1 -CB -traceback"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; #============================&lt;BR /&gt; # Set the optimization compiler flags &lt;BR /&gt; #============================&lt;BR /&gt; # Old Pentium 3 processors are sensitive optimization flags so set a reduced set of flags&lt;BR /&gt; # that produce generic instruction set for all Pentium platforms&lt;BR /&gt; if [ $P4_OPTIMIZE -eq 0 ]&lt;BR /&gt; then&lt;BR /&gt; case $opsys in&lt;BR /&gt; Linux_ifc9 )&lt;BR /&gt; optimize_common="-O3"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_ifc10 )&lt;BR /&gt; optimize_common="-O3"&lt;BR /&gt; ;;&lt;BR /&gt; * ) &lt;BR /&gt; optimize_common="-O3"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; else&lt;BR /&gt; case $opsys in&lt;BR /&gt; Linux_ifc9 )&lt;BR /&gt; optimize_common="-O3 -axKW -tpp7"&lt;BR /&gt; ;;&lt;BR /&gt; Linux_ifc10 )&lt;BR /&gt; #optimize_common="-fast"&lt;BR /&gt; optimize_common="-O3 -axW -ip -fp-model precise -ftz"&lt;BR /&gt; ;;&lt;BR /&gt; * ) &lt;BR /&gt; optimize_common="-O3 -axKW -tpp7"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; fi&lt;BR /&gt; #============================&lt;BR /&gt; # Set ALL debug compile flags&lt;BR /&gt; #============================&lt;BR /&gt; compile_d="-g -c -I. -FR $compile_common_d"&lt;BR /&gt; compile_d2="-g -c -I. -FR $compile_common_d"&lt;BR /&gt; compile_d3="-g -c -I. $compile_common_d"&lt;BR /&gt; link_d="-I. "&lt;BR /&gt; #============================&lt;BR /&gt; # Set ALL optimized compile flags&lt;BR /&gt; #============================&lt;BR /&gt; case $opsys in&lt;BR /&gt; Linux_ifc9 )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR $optimize_common"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; Linux_ifc10 )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR -O0 -axW -ip -fp-model precise -ftz"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; * )&lt;BR /&gt; compile="$compile_common -FR $optimize_common"&lt;BR /&gt; compile2="$compile_common -FR $optimize_common"&lt;BR /&gt; compile3="$compile_common $optimize_common"&lt;BR /&gt; link="-I. "&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; # ------------------&lt;BR /&gt; # flags for inlining&lt;BR /&gt; # ------------------&lt;BR /&gt; inline_objs="compare.o eosg.o discretize.o "&lt;BR /&gt; # inline_objs=" "&lt;BR /&gt;&lt;BR /&gt; inline_files="compare.f eosg.f discretize.f "&lt;BR /&gt; # inline_files=" "&lt;BR /&gt;&lt;BR /&gt; inline_flags=" "&lt;BR /&gt; # inline_flags=" -Minline=size:10 -Minfo=inline $inline_files"&lt;BR /&gt; preinline_flags=" "&lt;BR /&gt; ;;&lt;BR /&gt;    &lt;BR /&gt; CYGWIN32_NT)&lt;BR /&gt;  mach_file="PGNT.F"&lt;BR /&gt; &lt;BR /&gt; FORTRAN_CMD=pgf90&lt;BR /&gt; LINK_CMD=pgf90&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;  omp="-mp"&lt;BR /&gt; compile_d="-c -g -byteswapio -Mfreeform -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; link_d="-g"&lt;BR /&gt; compile="-c -I. -I. -byteswapio -Mfreeform -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; compile2="-c -I. -I. -byteswapio -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; compile3="-c -I. -I. -byteswapio -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;  &lt;BR /&gt; CYGWIN_NT-4.0)&lt;BR /&gt;  mach_file="PGNT.F"&lt;BR /&gt; &lt;BR /&gt; FORTRAN_CMD=pgf90&lt;BR /&gt; LINK_CMD=pgf90&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;  omp="-mp"&lt;BR /&gt; compile_d="-c -g -byteswapio -Mfreeform -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; link_d="-g"&lt;BR /&gt; compile="-c -I. -I$mpi_include -O -byteswapio -Mfreeform -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; compile2="-c -I. -I$mpi_include -O1 -byteswapio -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; compile3="-c -I. -I$mpi_include -O1 -byteswapio -Mnosave -Mrecursive -Mreentrant"&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;  &lt;BR /&gt; CYGWIN_NT-6.0-g95)&lt;BR /&gt;  mach_file="CYGNT.F"&lt;BR /&gt; &lt;BR /&gt; FORTRAN_CMD=g95&lt;BR /&gt; LINK_CMD=g95&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;  &lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt;  omp="-mp"&lt;BR /&gt; compile_d="-c -g"&lt;BR /&gt; link_d="-g"&lt;BR /&gt; compile="-c -I. -fendian=big -ffree-form -I$mpi_include -O "&lt;BR /&gt; compile2="-c -I. -fendian=big -ffree-form -I$mpi_include -O1 "&lt;BR /&gt; compile3="-c -I. -fendian=big -I$mpi_include -O1 "&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt; CYGWIN_NT-6.0-gfortran)&lt;BR /&gt; mach_file="CYGNT.F"&lt;BR /&gt;&lt;BR /&gt; FORTRAN_CMD=gfortran-4&lt;BR /&gt; LINK_CMD=gfortran-4&lt;BR /&gt; libs_d="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt; libs="odepack.a blas90.a dgtsv90.a"&lt;BR /&gt;&lt;BR /&gt; OBJ_EXT=o&lt;BR /&gt; FORTRAN_EXT=f&lt;BR /&gt; omp="-mp"&lt;BR /&gt; compile_d="-c -g"&lt;BR /&gt; link_d="-g"&lt;BR /&gt; compile="-c -I. -fconvert='big-endian' -ffree-form -I$mpi_include -O3 "&lt;BR /&gt; compile2="-c -I. -fconvert='big-endian' -ffree-form -I$mpi_include -O1 "&lt;BR /&gt; compile3="-c -I. -fconvert='big-endian' -I$mpi_include -O1 "&lt;BR /&gt; link=" "&lt;BR /&gt; MODULE_CODE=1&lt;BR /&gt;&lt;BR /&gt; ;;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt; *) echo "Sorry, no support for operating system: $opsys"&lt;BR /&gt; echo &lt;BR /&gt;  echo "modify make_mfix to add support"&lt;BR /&gt;  echo&lt;BR /&gt; exit ;;&lt;BR /&gt; esac&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;echo&lt;BR /&gt;echo "Compiling with machine-dependent file $mach_file"&lt;BR /&gt;echo&lt;BR /&gt;&lt;BR /&gt;# prepare for SMP version &lt;BR /&gt;smp_check="COMPILED_SMP"&lt;BR /&gt;case $smp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; if test -f $smp_check&lt;BR /&gt; then&lt;BR /&gt;  echo&lt;BR /&gt; else&lt;BR /&gt; /bin/rm -f *.o *.a *.mod *.exe&lt;BR /&gt; touch $smp_check&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; if test -f $smp_check&lt;BR /&gt; then&lt;BR /&gt; /bin/rm -f *.o *.a *.mod *.exe&lt;BR /&gt; /bin/rm -f $smp_check&lt;BR /&gt; else&lt;BR /&gt;  echo&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;# prepare for DMP version &lt;BR /&gt;dmp_check="COMPILED_DMP"&lt;BR /&gt;case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; if test -f $dmp_check&lt;BR /&gt; then&lt;BR /&gt;  echo&lt;BR /&gt; else&lt;BR /&gt; /bin/rm -f *.o *.a *.mod *.exe&lt;BR /&gt; touch $dmp_check&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; if test -f $dmp_check&lt;BR /&gt; then&lt;BR /&gt; /bin/rm -f *.o *.a *.mod *.exe&lt;BR /&gt; /bin/rm -f $dmp_check&lt;BR /&gt; else&lt;BR /&gt;  echo&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;#Prepare for the current machine  &lt;BR /&gt; mach_check="COMPILED.WITH.$mach_file"&lt;BR /&gt; if test -f $mach_check&lt;BR /&gt; then&lt;BR /&gt; echo&lt;BR /&gt; else&lt;BR /&gt; chmod +w machine.f&lt;BR /&gt; /bin/cp -f $mach_file machine.f&lt;BR /&gt; /bin/rm -f *.o *.a *.mod *.exe&lt;BR /&gt; /bin/rm -f COMPILED.WITH.*&lt;BR /&gt; touch $mach_check&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  &lt;BR /&gt; &lt;BR /&gt;# create default *.f and *.inc files in model directory, if they do not exist&lt;BR /&gt; cd $run_dir&lt;BR /&gt; echo&lt;BR /&gt; echo "Ignore messages such as "Cannot access *.f or *.inc""&lt;BR /&gt; for i in `ls *.f` &lt;BR /&gt; do&lt;BR /&gt; &lt;BR /&gt;# Is there a similar file in Mfix/model directory?&lt;BR /&gt; if test -r $mfix/$i &lt;BR /&gt; then&lt;BR /&gt; outfile=`echo $i | sed 's/\./\.0/'`&lt;BR /&gt;# Is there default file Mfix/model directory?&lt;BR /&gt; if test -r $mfix/$outfile&lt;BR /&gt; then&lt;BR /&gt; case $auto_compile in&lt;BR /&gt; y|Y)&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$outfile $outfile&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; do_nothing="ok"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; &lt;BR /&gt; else&lt;BR /&gt;# Mfix/model directory does not have a default file. create one.&lt;BR /&gt; /bin/cp -f $mfix/$i $mfix/$outfile&lt;BR /&gt; fi &lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; for i in `ls *.inc` &lt;BR /&gt; do&lt;BR /&gt; &lt;BR /&gt;# Is there a similar file in Mfix/model directory?&lt;BR /&gt; if test -r $mfix/$i &lt;BR /&gt; then&lt;BR /&gt; outfile=`echo $i | sed 's/\./\.0/'`&lt;BR /&gt;# Is there default file Mfix/model directory?&lt;BR /&gt; if test -r $mfix/$outfile&lt;BR /&gt; then&lt;BR /&gt; do_nothing="ok"&lt;BR /&gt; &lt;BR /&gt; else&lt;BR /&gt;# Mfix/model directory does not have a default file. create one.&lt;BR /&gt; /bin/cp -f $mfix/$i $mfix/$outfile&lt;BR /&gt; fi&lt;BR /&gt; &lt;BR /&gt; else&lt;BR /&gt; /bin/cp -f $i $mfix &lt;BR /&gt; echo "Using nonMfix include file: $i"&lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt; echo&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;# Loop through all *.0* files in mfix/model directory&lt;BR /&gt; cd $mfix&lt;BR /&gt;&lt;BR /&gt; echo&lt;BR /&gt; echo "Files from run directory used for making Mfix:"&lt;BR /&gt; for i in `ls *.0*`&lt;BR /&gt; do&lt;BR /&gt; &lt;BR /&gt;# The user has a corresponding file&lt;BR /&gt; outfile=`echo $i | sed 's/\.0/\./'`&lt;BR /&gt; if test -r $run_dir/$outfile &lt;BR /&gt; then&lt;BR /&gt; echo " $outfile"&lt;BR /&gt;&lt;BR /&gt;# User's file different from the .f or .inc file: copy user's file&lt;BR /&gt; cmp -s $run_dir/$outfile $outfile &lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt; case $auto_compile in&lt;BR /&gt; y|Y)&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$outfile $outfile&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; do_nothing="ok"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; else&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$outfile $outfile&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# User does not have the corresponding file&lt;BR /&gt; else&lt;BR /&gt;&lt;BR /&gt;# The .0f or .0inc file different from the .f or .inc file: copy *.0* file&lt;BR /&gt; cmp -s $i $outfile&lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt; /bin/rm -f $i&lt;BR /&gt; else&lt;BR /&gt; /bin/mv -f $i $outfile&lt;BR /&gt;  touch $outfile&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt; echo&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;# ISAT related modifications&lt;BR /&gt; if [ $DO_ISAT -eq 0 ]&lt;BR /&gt; then&lt;BR /&gt; /bin/cp -fp chem/isat_donothing/* chem&lt;BR /&gt; else&lt;BR /&gt; /bin/cp -fp chem/isat_do/* chem&lt;BR /&gt; fi&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;#AIKE 083105&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;# Check if the user's run directory has the following subdirectories&lt;BR /&gt;# that contains modified source code for the new modules.&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;# &lt;BR /&gt;# function updatesubdir defined here to embed all the operations applicable to subdirectories&lt;BR /&gt;# under run directory within in a single call but varying argument list, &lt;BR /&gt;# e.g.&lt;BR /&gt;# updatesubdir dqmom&lt;BR /&gt;# updatesubdir chem&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;updatesubdir()&lt;BR /&gt;{ &lt;BR /&gt; #------------------------------- Step 1&lt;BR /&gt; # &lt;BR /&gt; # create default bckup copy *.f and *.inc files in model/subrun_dir directory, &lt;BR /&gt; # if they do not exist&lt;BR /&gt; #--------------------------------&lt;BR /&gt; subrun_dir=$1&lt;BR /&gt; &lt;BR /&gt; echo ****&lt;BR /&gt; echo "Checking for modified user files under " $run_dir/$subrun_dir&lt;BR /&gt; echo **** &lt;BR /&gt;&lt;BR /&gt; cd $run_dir/$subrun_dir&lt;BR /&gt; echo&lt;BR /&gt; echo "Ignore messages such as "Cannot access *.f or *.inc""&lt;BR /&gt; for i in `ls *.f` &lt;BR /&gt; do&lt;BR /&gt; &lt;BR /&gt; # Is there a similar file in Mfix/model directory?&lt;BR /&gt; if test -r $mfix/$subrun_dir/$i &lt;BR /&gt; then&lt;BR /&gt; # to make bckup copy "create new name" by add .0f extension, mfix.f-&amp;gt; mfix.0f&lt;BR /&gt; outfile=`echo $i | sed 's/\./\.0/'`&lt;BR /&gt; &lt;BR /&gt; # Is there default bckup copy of the file with *.0f extension under Mfix/model/subrun_dir directory?&lt;BR /&gt; # if not create one (if auto_compile is enabled)&lt;BR /&gt; # else do nothing&lt;BR /&gt; if test -r $mfix/$subrun_dir/$outfile&lt;BR /&gt; then&lt;BR /&gt; case $auto_compile in&lt;BR /&gt; y|Y)&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$subrun_dir/$outfile $outfile   &lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; do_nothing="ok"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; &lt;BR /&gt; else&lt;BR /&gt; # Mfix/model directory does not have a default file. create a backup copy with .0f extension&lt;BR /&gt; /bin/cp -f $mfix/$subrun_dir/$i $mfix/$subrun_dir/$outfile&lt;BR /&gt; fi &lt;BR /&gt; fi&lt;BR /&gt; done &lt;BR /&gt;&lt;BR /&gt; #------------------------------- Step 2&lt;BR /&gt; #&lt;BR /&gt; # After generating the backup copy of the original under model/subrun_dir (if it didn't exist) &lt;BR /&gt; # copy the new user modified file from the run directory over the existing one&lt;BR /&gt; # &lt;BR /&gt; #------------------------------------------------------------------------ &lt;BR /&gt; #&lt;BR /&gt; # Loop through all *.0* files in mfix/model/$subrun_dir directory&lt;BR /&gt; cd $mfix/$subrun_dir&lt;BR /&gt;&lt;BR /&gt; echo&lt;BR /&gt; echo "Files from "$subrun_dir" under run directory used for making Mfix:"&lt;BR /&gt; for i in `ls *.0*`&lt;BR /&gt; do&lt;BR /&gt; &lt;BR /&gt; # The user has a corresponding file&lt;BR /&gt; outfile=`echo $i | sed 's/\.0/\./'`&lt;BR /&gt; if test -r $run_dir/$subrun_dir/$outfile &lt;BR /&gt; then&lt;BR /&gt; echo " $outfile"&lt;BR /&gt;&lt;BR /&gt; # User's file different from the .f or .inc file: copy user's file&lt;BR /&gt; cmp -s $run_dir/$subrun_dir/$outfile $outfile &lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt; case $auto_compile in&lt;BR /&gt; y|Y)&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$subrun_dir/$outfile $outfile&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; do_nothing="ok"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; else&lt;BR /&gt; chmod u+w $outfile&lt;BR /&gt; /bin/cp -f $run_dir/$subrun_dir/$outfile $outfile&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; # User does not have the corresponding file&lt;BR /&gt; else&lt;BR /&gt;&lt;BR /&gt; # The .0f or .0inc file different from the .f or .inc file: copy *.0* file&lt;BR /&gt; cmp -s $i $outfile&lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt; /bin/rm -f $i&lt;BR /&gt; else&lt;BR /&gt; /bin/mv -f $i $outfile&lt;BR /&gt;  touch $outfile&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; fi&lt;BR /&gt; done&lt;BR /&gt; echo &lt;BR /&gt; &lt;BR /&gt;} # eof function updatesubdir&lt;BR /&gt;&lt;BR /&gt;#-----------&lt;BR /&gt;#AIKE Check for subdirectories under run directory&lt;BR /&gt;#-----------&lt;BR /&gt; if test -d $run_dir/chem&lt;BR /&gt; then&lt;BR /&gt; updatesubdir chem &lt;BR /&gt; fi&lt;BR /&gt; &lt;BR /&gt; if test -d $run_dir/dqmom&lt;BR /&gt; then&lt;BR /&gt; updatesubdir dqmom &lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; if test -d $run_dir/des&lt;BR /&gt; then&lt;BR /&gt; updatesubdir des &lt;BR /&gt; fi &lt;BR /&gt;&lt;BR /&gt;#JFD Check for Cartesian Grid subdirectory under run directory&lt;BR /&gt; if test -d $run_dir/cartesian_grid&lt;BR /&gt; then&lt;BR /&gt; updatesubdir cartesian_grid &lt;BR /&gt; fi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; cd $mfix&lt;BR /&gt;#&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; echo&lt;BR /&gt; echo -n '******************************************************'&lt;BR /&gt; echo&lt;BR /&gt; echo -n 'Preparing files for your dmp and/or smp compilation'&lt;BR /&gt; echo&lt;BR /&gt; echo -n '******************************************************'&lt;BR /&gt; echo&lt;BR /&gt; &lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; echo&lt;BR /&gt; echo -n '******************************************************'&lt;BR /&gt; echo&lt;BR /&gt; echo -n 'Preparing files for your serial/smp compilation'&lt;BR /&gt; echo&lt;BR /&gt; echo -n '******************************************************'&lt;BR /&gt; echo&lt;BR /&gt; /bin/cp -f mfix_l.make mfix_l_not.make&lt;BR /&gt; ex mfix_l_not.make &amp;lt; dmp_modules/ex.commands&lt;BR /&gt; /bin/cp -f mfix_u.make mfix_u_not.make&lt;BR /&gt; ex mfix_u_not.make &amp;lt; dmp_modules/ex.commands&lt;BR /&gt;&lt;BR /&gt; cmp -s dmp_modules/compar_mod.f dmp_modules/mpi_donothing/compar_mod.f &lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt;  echo&lt;BR /&gt; else&lt;BR /&gt;  /bin/cp -f dmp_modules/compar_mod.f dmp_modules/mpi_donothing/&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt; cmp -s dmp_modules/gridmap_mod.f dmp_modules/mpi_donothing/gridmap_mod.f &lt;BR /&gt; if test $? = 0&lt;BR /&gt; then&lt;BR /&gt;  echo&lt;BR /&gt; else&lt;BR /&gt; /bin/cp -f dmp_modules/gridmap_mod.f dmp_modules/mpi_donothing/&lt;BR /&gt; fi&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt;#make_mfix:&lt;BR /&gt; case $smp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; mp_flag="$omp"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; mp_flag=" "&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; case $dbg_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; echo&lt;BR /&gt; echo "Execution may be SLOW. Do not use debug version for production runs!"&lt;BR /&gt; FORT_FLAGS="$mp_flag $compile_d"&lt;BR /&gt; FORT_FLAGS2="$mp_flag $compile_d2"&lt;BR /&gt; FORT_FLAGS3="$mp_flag $compile_d3" &lt;BR /&gt; LINK_FLAGS="$mp_flag $link_d"&lt;BR /&gt; LIB_FLAGS="$libs_d"&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; FORT_FLAGS="$mp_flag $compile $preinline_flags"&lt;BR /&gt; FORT_FLAGS2="$mp_flag $compile2 $preinline_flags"&lt;BR /&gt; FORT_FLAGS3="$mp_flag $compile3 $preinline_flags" &lt;BR /&gt; LINK_FLAGS="$mp_flag $link"&lt;BR /&gt; LIB_FLAGS="$libs"&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt;&lt;BR /&gt; echo "\n Compiling inline files . . ."&lt;BR /&gt; &lt;BR /&gt; export FORT_FLAGS&lt;BR /&gt; export FORT_FLAGS2&lt;BR /&gt; export FORT_FLAGS3 &lt;BR /&gt; export LINK_FLAGS&lt;BR /&gt; export LIB_FLAGS&lt;BR /&gt; export OBJ_EXT&lt;BR /&gt; export FORTRAN_EXT&lt;BR /&gt; export FORTRAN_CMD&lt;BR /&gt; export LINK_CMD&lt;BR /&gt; if [ "$USE_TAU" ]&lt;BR /&gt; then &lt;BR /&gt; export USE_TAU&lt;BR /&gt; fi&lt;BR /&gt;#AIKE debug what is sent to makefile&lt;BR /&gt;# echo "Test vars: " $FORT_FLAGS&lt;BR /&gt;# echo "Test vars: " $FORT_FLAGS2&lt;BR /&gt;# echo "Test vars: " $FORT_FLAGS3&lt;BR /&gt;# echo "Test vars: " $LIB_FLAGS3&lt;BR /&gt;&lt;BR /&gt;#######&lt;BR /&gt;#INFO_3 Following block makes necessary setup for automatic instrumentation using TAU&lt;BR /&gt;#######&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;# T A U P e r f o r m a n c e P r o f i l i n g directives&lt;BR /&gt;#------------------------------------------------------------------------&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt; if [ "$USE_TAU" ]&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo "************************************************************************"&lt;BR /&gt; echo "Preparing for parsing source code and automatic instrumentation with TAU"&lt;BR /&gt; echo "************************************************************************" &lt;BR /&gt; inst_moved=0&lt;BR /&gt; miss_dir=0&lt;BR /&gt; #----&lt;BR /&gt; # Check if TAU directory is valid or not &lt;BR /&gt; #----&lt;BR /&gt; if test -d "$TAUROOTDIR"&lt;BR /&gt; then&lt;BR /&gt; echo&lt;BR /&gt; export TAUROOTDIR&lt;BR /&gt; else&lt;BR /&gt; echo &lt;BR /&gt; echo "TAU directory $TAUROOTDIR can not be found."&lt;BR /&gt; echo "Please set TAUROOTDIR environment variable at the top of"&lt;BR /&gt; echo "model/make_mfix file to a valid path. Aborting compilation."&lt;BR /&gt; echo&lt;BR /&gt; exit&lt;BR /&gt; fi&lt;BR /&gt; #----&lt;BR /&gt; # Check if PDToolkit directory is valid or not&lt;BR /&gt; #----&lt;BR /&gt; if test -d "$PDTROOTDIR"&lt;BR /&gt; then&lt;BR /&gt; echo&lt;BR /&gt; export PDTROOTDIR&lt;BR /&gt; else&lt;BR /&gt; echo &lt;BR /&gt; echo "PDToolkit directory $PDTROOTDIR can not be found."&lt;BR /&gt; echo "Please set PDTROOTDIR environment variable at the top of"&lt;BR /&gt; echo "model/make_mfix file to a valid path. Aborting compilation."&lt;BR /&gt; echo&lt;BR /&gt; exit&lt;BR /&gt; fi&lt;BR /&gt; #----&lt;BR /&gt; # Create the directive and environment variable block for TAU specific settings&lt;BR /&gt; #----&lt;BR /&gt; OUTfile=tausettings&lt;BR /&gt; echo "ifdef USE_TAU" &amp;gt; $OUTfile&lt;BR /&gt;# echo " include \$(TAUROOTDIR)/include/Makefile" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt;# echo " include \$(TAUROOTDIR)/xt3/lib/Makefile.tau-craytimers-multiplecounters-mpi-papi-pdt-pgi" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt; echo " include \$(TAUROOTDIR)/xt3/lib/Makefile.tau-callpath-craytimers-multiplecounters-mpi-papi-pdt-pgi" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt;# echo " include \$(TAUROOTDIR)/xt3/lib/Makefile.tau-phase-craytimers-multiplecounters-mpi-papi-pdt-pgi" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt;# echo " include \$(TAUROOTDIR)/xt3/lib/Makefile.tau-callpath-craytimers-mpi-pdt-pgi" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt; echo " MYOPTIONS=-optVerbose -optKeepFiles -optPdtF95Opts="-R free" -optTauSelectFile=select.tau " &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; #COMPIL_SET=mpif90&lt;BR /&gt; COMPIL_SET=ftn&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; COMPIL_SET=qk-pgf90&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; echo " FORTRAN_CMD=\$(TAU_COMPILER) \$(MYOPTIONS)" $COMPIL_SET &amp;gt;&amp;gt; $OUTfile&lt;BR /&gt; echo " FORTRAN77_CMD=\$(TAU_COMPILER) \$(MYOPTIONS)" $COMPIL_SET &amp;gt;&amp;gt; $OUTfile&lt;BR /&gt; echo " LINK_CMD=\$(TAU_COMPILER) \$(MYOPTIONS)" $COMPIL_SET &amp;gt;&amp;gt; $OUTfile&lt;BR /&gt; # Need to check for dmp_version if serial compiling&lt;BR /&gt; case $dmp_version in&lt;BR /&gt; y|Y )&lt;BR /&gt; echo " LIB_FLAGS = odepack.a -lm -L \$(MPIHOME)/lib -lmpich -L\$(ACML_DIR)/lib -lacml -lacml_mv -L/opt/xt-tools/papi/3.2.1/lib/snos64 -lpapi -L/opt/xt-tools/papi/3.2.1/lib64/snos64 -lperfctr" &amp;gt;&amp;gt; $OUTfile&lt;BR /&gt; ;;&lt;BR /&gt; *)&lt;BR /&gt; echo " LIB_FLAGS = odepack.a -lm -L\$(ACML_DIR)/lib -lacml -lacml_mv " &amp;gt;&amp;gt; $OUTfile&lt;BR /&gt; ;;&lt;BR /&gt; esac&lt;BR /&gt; echo " LINK_FLAGS =" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt; echo "endif" &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt; echo " " &amp;gt;&amp;gt; $OUTfile &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; SRCDIR=.&lt;BR /&gt; &lt;BR /&gt; #----&lt;BR /&gt; # Create the select.tau for selecting the routines for TAU_instrumentor&lt;BR /&gt; #----&lt;BR /&gt; if test -r $SRCDIR/select.tau&lt;BR /&gt; then &lt;BR /&gt; echo " "&lt;BR /&gt; echo " *******"&lt;BR /&gt; echo " * select.tau file for TAU_instrumentor found, excluding the files" &lt;BR /&gt; echo " * and subroutines listed in select.tau for instrumentation" &lt;BR /&gt; echo " *******"&lt;BR /&gt; echo " "&lt;BR /&gt; else&lt;BR /&gt; SELfile=select.tau&lt;BR /&gt; echo "# Selective instrumentation: Specify an exclude/include list of routines/files." &amp;gt; $SELfile&lt;BR /&gt; echo "BEGIN_EXCLUDE_LIST" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "#void quicksort(int *, int, int)" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "#void interchange(int *, int *)" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "SET_WALL_BC1" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "PARALLEL_MPI::MPI_CHECK" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "G_0" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "EQUAL" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "DROODP_G" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "DG_0DNU" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "BOUNDFUNIJK::BOUND_FUNIJK" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "G_0CS" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "COMPARE" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "BOUNDFUNIJK3::BOUND_FUNIJK3" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "DEBUG::ASSERT_I" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "EOSG" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "CALC_XSI" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; #echo "READ_NAMELIST" &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "END_EXCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# " &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; echo "# If an include list is specified, the routines in the list will be the only" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# routines that are instrumented." &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# To specify an include list ( a list of routines that will be instrumented)" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# remove the leading # to uncomment the following lines" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#BEGIN_INCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#int main(int, char **)" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#int select_" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#END_INCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# " &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# TAU also accepts file include/exclude lists that may be specified with" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# wildcard characters (* and ?) to exclude/include routines in specific files." &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# These options may be used in conjunction with the routine include/exclude" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# lists as shown above. Uncomment the # to make the rule active." &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# " &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#====================================================================" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# EITHER INCLUDE OR EXCLUDE LISTS SHOULD BE SPECIFIED, BUT NOT BOTH.!!!!!" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#====================================================================" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#BEGIN_FILE_INCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#Main.cpp" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#Foo?.c" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#*.C" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#adjust_a_u_g.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#END_FILE_INCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# Instruments routines in Main.cpp, Foo?.c and *.C files only" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# Use BEGIN_[FILE]_INCLUDE_LIST with END_[FILE]_INCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "BEGIN_FILE_EXCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#f*.c" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#impl?.C" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#calc_d.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#leq_bicgs.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#vf_gs_x.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#vf_gs_y.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "#vf_gs_z.f" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "END_FILE_EXCLUDE_LIST" &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo "# excludes files f*.c and impl?.C (such as implA.C, foo.c)." &amp;gt;&amp;gt; $SELfile &lt;BR /&gt; echo " " &amp;gt;&amp;gt; $SELfile&lt;BR /&gt; fi &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;#----&lt;BR /&gt;# Check if mfix_merged.pdb exists and user still wants to run the parser&lt;BR /&gt;#----&lt;BR /&gt; parse_contin=y&lt;BR /&gt; if test -r $SRCDIR/mfix_merged.pdb&lt;BR /&gt; then&lt;BR /&gt; echo " "&lt;BR /&gt; echo " *******"&lt;BR /&gt; echo " * Resultant file from previous PDToolkit parsing was found: $SRCDIR/mfix_merged.pdb"&lt;BR /&gt; ls -als $SRCDIR/mfix_merged.pdb&lt;BR /&gt; echo " * Continuing with parsing will overwrite the existing file,"&lt;BR /&gt; echo -n " * Do you want to continue? (y/n) [no]"&lt;BR /&gt; read parse_contin&lt;BR /&gt; echo " "&lt;BR /&gt; echo $parse_contin&lt;BR /&gt; fi&lt;BR /&gt; case $parse_contin in&lt;BR /&gt; y|Y )&lt;BR /&gt; # Inform user if overwriting an existing *.pdb else print nothing&lt;BR /&gt; if test -r $SRCDIR/mfix_merged.pdb&lt;BR /&gt; then&lt;BR /&gt; echo " * Overwriting the previously generated mfix_merged.pdb"&lt;BR /&gt; fi&lt;BR /&gt; #----&lt;BR /&gt; # Check if any TAU ins</description>
      <pubDate>Tue, 14 Sep 2010 12:06:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749524#M6395</guid>
      <dc:creator>giuseppec</dc:creator>
      <dc:date>2010-09-14T12:06:20Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749525#M6396</link>
      <description>&lt;P&gt;That is not what I was requesting but it contains evidence in the selection of lnx_compiler suggesting the app is perhaps not Intel compiler 11.1 ready.&lt;/P&gt;&lt;P&gt;I recommend both of you consult the authors/providers of this app about this linker error to determine what is needed in the app version you have to use Intel 11.1 compilers or if a new version is availablethat is Intel 11.1 compiler ready.&lt;BR /&gt;&lt;BR /&gt;I also request that either come back here to post an update to this thread on what was learned to benefit others who may face this too. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2010 12:41:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749525#M6396</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-14T12:41:15Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749526#M6397</link>
      <description>@ &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=335337" class="basic" href="https://community.intel.com/../profile/335337/"&gt;jipazimp&lt;/A&gt;&lt;TABLE style="height: 49px;" width="275"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;B&gt;Now mfix works!!&lt;BR /&gt;&lt;/B&gt;&lt;SPAN class="sectionBodyText"&gt;&lt;BR /&gt;I've solved installing Ubuntu 9.04 (before I had Ubuntu 10) and Intel Fortran Compiler 10.1.026.&lt;BR /&gt;&lt;BR /&gt;I have the following platform&lt;BR /&gt;architecture:i686&lt;BR /&gt;kernel = 2.6.28-19-generic&lt;BR /&gt;glibc=/lib/libc -2.9.so&lt;BR /&gt;&lt;BR /&gt;@ Kevin&lt;BR /&gt;Thank you for your help!&lt;BR /&gt;&lt;BR /&gt;Giuseppec&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 15 Sep 2010 09:01:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749526#M6397</guid>
      <dc:creator>giuseppec</dc:creator>
      <dc:date>2010-09-15T09:01:45Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749527#M6398</link>
      <description>Thats sound great Giuseppec.&lt;BR /&gt;&lt;BR /&gt;Do you know where I could get a previous Intel Compilers Release from?&lt;BR /&gt;&lt;BR /&gt;I would intent tochange just the compilers, and I'll see what happen.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 15 Sep 2010 17:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749527#M6398</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-15T17:32:44Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749528#M6399</link>
      <description>Previous compiler versions are available at the &lt;A href="http://registrationcenter.intel.com"&gt;Intel Registration Center&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;See &lt;A target="_blank" href="http://software.intel.com/en-us/articles/older-version-product/"&gt;How to obtain an older version&lt;/A&gt;.</description>
      <pubDate>Wed, 15 Sep 2010 18:04:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749528#M6399</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-15T18:04:05Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749529#M6400</link>
      <description>I've tried to register my Intel Compiler Suite Professional Edition for Linux, but in the Registration Center web page said that there is a problem with my account that prevents to register my product.

Is this procedure valid for Free-Non Commercial products for Linux?</description>
      <pubDate>Wed, 15 Sep 2010 18:42:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749529#M6400</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-15T18:42:19Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749530#M6401</link>
      <description>Yes, valid for Non-comm too.&lt;BR /&gt;&lt;BR /&gt;Post a request for help in the &lt;A target="_blank" href="Intel Software Development Products Download, Registration &amp;amp; Licensing"&gt;Intel Software Development Products Download, Registration &amp;amp; Licensing&lt;/A&gt; forum to get your account issue cleared up.</description>
      <pubDate>Wed, 15 Sep 2010 18:54:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749530#M6401</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-15T18:54:21Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749531#M6402</link>
      <description>Hi all, finally I got Intel Fortran Compiler 10.1.026 and I just installed, mfix is just running fine.&lt;BR /&gt;&lt;BR /&gt;It remains to find out why mfix does not run using IFC 11.1, I'll try to follow the make_mfix routine and see what is caussing the error.&lt;BR /&gt;&lt;BR /&gt;Thakns Kevin, thanks Giuseppec.</description>
      <pubDate>Wed, 15 Sep 2010 22:03:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749531#M6402</guid>
      <dc:creator>jipazimp_mx</dc:creator>
      <dc:date>2010-09-15T22:03:56Z</dc:date>
    </item>
    <item>
      <title>libirc.a compiling error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749532#M6403</link>
      <description>&lt;P&gt;We've received additional information about this error and after a colleague's further investigation he found the error occurs when an additional &lt;STRONG&gt;-lsvml&lt;/STRONG&gt; option is specified as was noted earlier in this post. He determined something has changed in 11.1.073, but further investigation is needed to determine whether this represents a defect or not.&lt;/P&gt;

&lt;P&gt;He found the compiler driver already inserts &lt;STRONG&gt;-lsvml&lt;/STRONG&gt; into the link in the appropriate place and links it statically, by default. The additional &lt;STRONG&gt;-lsvml &lt;/STRONG&gt;option inserts a second copy of libsvml at the head of the link, and links it dynamically. This is what leads to the link error.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;STRONG&gt;To giuseppec&lt;/STRONG&gt; and &lt;STRONG&gt;jipazimp.mx,&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;When you try re-building mfix with 11.1 compilers again, edit the Makefile and remove &lt;STRONG&gt;-lsvml&lt;/STRONG&gt; from the &lt;STRONG&gt;LINK_CMD&lt;/STRONG&gt; accordingly. It appears in multiple places for different build scenarios.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&lt;STRONG&gt;For others who experience this error,&lt;/STRONG&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	My colleague's additional advice is, you can ensure there is no conflict between the two references to libsvml like this:&lt;/P&gt;

&lt;P&gt;ifort sample.f -Bstatic -lsvml -Bdynamic&lt;/P&gt;

&lt;P&gt;Or you can just link dynamically with &lt;STRONG&gt;-shared-intel&lt;/STRONG&gt;. But simplest is not to specify &lt;STRONG&gt;-lsvml &lt;/STRONG&gt;at all when using the compiler driver to do the linking. Let the driver figure out which run-time libraries are needed, and in which order.&lt;/P&gt;

&lt;P&gt;I will update this post as I learn more.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 03/05/2014):&lt;/STRONG&gt; This issue was resolved in the Fortran Composer XE 2011 SP1 (ifort Version 12.1.4.319 Build 20120410 - Linux)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2010 08:14:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749532#M6403</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-09-30T08:14:00Z</dc:date>
    </item>
    <item>
      <title>still on mfix</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749533#M6404</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to compile a post processor results, post_mfix. For this I have to use the intel compiler fortran 9.x. I've tried installing several versions of this. The message I get from propt is that the license file I'm using is not a license file. What intrigued me is that when I use that same file to install 10.x or 11.x versions of the compiler installation proceeds without problems.&lt;/P&gt;&lt;P&gt;I am using the license file I get email when I register my serial number.&lt;/P&gt;&lt;P&gt;I am using Ubuntu 32-bit 10/10. The same error occurs in the 64-bit system.&lt;/P&gt;&lt;P&gt;You know what's going on?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2011 16:17:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/libirc-a-compiling-error/m-p/749533#M6404</guid>
      <dc:creator>jean_pinho</dc:creator>
      <dc:date>2011-05-09T16:17:18Z</dc:date>
    </item>
  </channel>
</rss>

