#!/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="mpif77" # C compiler CC="mpicc" # pre-processor symbol list # (set PPLIST=? to get a list of available symbols) #PPLIST="?" # 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="-g" # optimization flags #OPT_FLAGS_STD="" #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" # 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" # PGI: # USR_LFLAGS="-pgcpplibs" # USR_LFLAGS=" -lmpi_cxx -lstdc++" # enable VisIt in situ # Note: you can override the lib and include paths. VISIT_LIB and VISIT_INC # If VISIT_STOP is set the simulation will stop after first step and wait # for VisIt to connect. #IFVISIT=true #VISIT_INSTALL="/path/to/visit/current/linux-x86_64/" #VISIT_STOP=true ############################################################################### # 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