#!/bin/bash # Nek5000 build config file # (c) 2008,2009,2010 UCHICAGO ARGONNE, LLC # source path SOURCE_ROOT="$HOME/nek5_svn/trunk/nek" # Fortran compiler F77="mpixlf77" # C compiler CC="mpixlc" # pre-processor symbol list # (set PPLIST=? to get a list of available symbols) PPLIST="MPIIO MOAB" # plug-in list PLUGIN_LIST="" # OPTIONAL SETTINGS # ----------------- # enable MPI (default true) #IFMPI="false" # auxilliary files to compile # NOTE: source files have to located in the same directory as makenek # a makefile_usr.inc has to be provided containing the build rules #USR="foo.o" # linking flags #USR_LFLAGS="-L/usr/lib -lfoo" # generic compiler flags #G= # optimization flags OPT_FLAGS_STD="-O3 -qstrict -qhot" #OPT_FLAGS_MAG="" # enable AMG coarse grid solver (default XXT) #IFAMG="true" #IFAMG_DUMP="true" # CVODE path #CVODE_DIR=$HOME/cvode/lib # MOAB/iMESH path MOAB_DIR="$HOME/moab-4.6.3/BUILD_DIR" # For linking to MOAB, the following might be needed: # NOTE: compiler specific, use the appropriate one depending on your compiler # GNU: # USR_LFLAGS="-lmpi_cxx -lstdc++" # Intel: # USR_LFLAGS="-cxxlib" # XL: $LIB containing libibmc++.a libibmc++.so libxl.a libxlopt.a USR_LFLAGS="-L$SCINET_VACPP_LIB -libmc++" # PGI: # USR_LFLAGS="-pgcpplibs" # USR_LFLAGS=" -lmpi_cxx -lstdc++" ############################################################################### # DONT'T TOUCH WHAT FOLLOWS !!! ############################################################################### # assign version tag mver=1 # overwrite source path with optional 2nd argument if [ -d $2 ] && [ $# -eq 2 ]; then SOURCE_ROOT="$2" echo "change source code directory to: ", $SOURCE_ROOT fi # do some checks and create makefile source $SOURCE_ROOT/makenek.inc # compile make -j4 -f makefile 2>&1 | tee compiler.out exit 0