# modules must be loaded by the user in the invoking shell already!
#source /opt/modules/default/init/tcsh
#module purge
#module load compiler/intel/15.0.3
# sigh. the current module definitions to contain ITAC_ROOT
#if ( -f $I_MPI_ROOT/../../itac_latest/bin/itacvars.csh ) \
#  source $I_MPI_ROOT/../../itac_latest/bin/itacvars.csh
#module load mpi/intel/5.0.3.048
#module load netcdf-fortran/4.4.2/impi
#module load netcdf-cxx-42/4.3.3/ipmi
#module load udunits/2.2.19
#setenv MALLOC_CHECK_ 0
#setenv MPI_COREDUMP_DEBUGGER `which idb`

#setenv NETCDFINCLUDE "-I$NETCDF_FORTRANROOT/include -I$NETCDF_CXXROOT/include -I$NETCDF_CROOT/include"
#setenv NETCDFLIBPATH "-L$NETCDF_CXXROOT/lib -L$NETCDF_FORTRANROOT/lib64 -L$NETCDF_CROOT/lib64 -lnetcdf_c++ -lnetcdff -lnetcdf -L$HDF5ROOT/lib -lhdf5 -lhdf5_hl -L$UDUNITSROOT/lib -ludunits2 -lstdc++"

#setenv NETCDFINCLUDE -I/home/petri/netcdf-4.2.1.1-intel15/include
#setenv NETCDFLIBPATH "-L/home/petri/netcdf-4.2.1.1-intel15/lib -lnetcdf_c++ -lnetcdff -lnetcdf -L/home/petri/hdf5-1.8.9-intel15/lib -lhdf5_hl -lhdf5 -lz -L$UDUNITSROOT/lib -ludunits2 -lstdc++ -L$CURLROOT/lib -lcurl"
# Use system-provided curl to avoid exaggerated dependencies.
# Problem: curl-devel is installed only on the vis-servers, not on login nodes.
#setenv NETCDFLIBPATH "-L/home/petri/netcdf-4.2.1.1-intel15/lib -lnetcdf_c++ -lnetcdff -lnetcdf -L/home/petri/hdf5-1.8.9-intel15/lib -lhdf5_hl -lhdf5 -lz -L$UDUNITSROOT/lib -ludunits2 -lstdc++                 -lcurl"

setenv NETCDFINCLUDE -I/home/petri/netcdf-4.7.4-intel15/include
setenv NETCDFLIBPATH "-L/home/petri/netcdf-4.7.4-intel15/lib -lnetcdf_c++ -lnetcdff -lnetcdf -L/home/petri/hdf5-1.10.6-intel15/lib -lhdf5_hl -lhdf5 -lz -L$UDUNITSROOT/lib -ludunits2 -lstdc++"

setenv CC icc
alias gmake gmake -j 4

#setenv SCALASCA_DIR /home/petri

#setenv mpirunCommand   "mpirun -np"
