#! /bin/bash # This script install wien2k (version is as specified as xxx in inst_wien2k_xxxx) in a Rocks Linux Cluster, in /share/apps/wien2k # Run this as su. Wien2k will be installed in /share/apps/wien2k # To successfully run this script for automatica installation of parallel version of wien2k, the following conditions must be fulfilled: # /opt/intel/parallel_studio_xe_20XX.X.XXX and /opt/intel/mkl/interfaces/fftw3xf/libfftw3xf_intel.a must have already installed # The following zipped folder WIEN2k_14.2_compiled.tar.gz was already precompiled with all working Makefiles and OPTIONS. dir='/share/apps' # dir=$(echo $HOME) mkdir $dir/wien2k cd $dir/wien2k scp root@comsics.usm.my:/share/apps/configrepo/WIEN2k_14.2_compiled.tar.gz . ## password is required to download the source file. tar -zxvf WIEN2k_14.2_compiled.tar.gz ./siteconfig_lapw ## choose Recompile all. #### Wait for compilation to complete. If no error is prompted, compilation is successful. # To setup the environment for WIEN users, each user should execute /share/apps/wien2k/userconfig_lapw # When prompted to creat .rhost in userconfig, just say no. Creat remote hosts later. # . ~/.bashrc # /share/apps/wien2k/w2web. w2web will be configured for that user. You will be promted for admin and password. If left unasnwered, the default userid will be 'admin', and password will be 'password'. Enter yes to all the prompt. ## In case the default port number 7890 has already been used, simply issue # w2web -p portnumber # where portnumber is any number > 7890 (say 7900) # Launch wien2k web by issuing 'w2web'. Or alternatively, issue e.g., 'firefox http://HOSTNAME:7900' # A web browser will be fired, with the url e.g., http://HOSTNAME:7900 # Bookmark the url for future use. ##############obsolete################################## #! /bin/bash # This script install wien2k (version is as specified as xxx in inst_wien2k_xxxx) in a Rocks Linux Cluster, in /share/apps/wien2k # Run this as su. Wien2k will be installed in /share/apps/wien2k # To successfully run this script for automatica installation of parallel version of wien2k, the following conditions must be fulfilled: # /opt/intel/parallel_studio_xe_20XX.X.XXX and /opt/intel/mkl/interfaces/fftw3xf/libfftw3xf_intel.a must have already installed #dir='/share/apps' ## dir=$(echo $HOME) #mkdir $dir/wien2k #cd $dir/wien2k #wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/wein2k/WIEN2k_14.2.tar . ## password is required to download the source file. #tar -xvf WIEN2k_14.2.tar #gunzip *.gz #./expand_lapw #wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/wein2k/COMPILER #wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/wein2k/COMPILERC #wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/wein2k/COMPILERP #wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/wein2k/OPTIONS #./siteconfig_lapw # During ./siteconfig, when prompted for system option, choose K1 (mkl 11.1 and ifort). ## Choose Save and Quit when prompted for ## 'Recommended options for system linuxif111 are: ## ... ## To change an item select option. ## Selection: ## ... Current settings: ## chose S (Save and Quit). ## Say yes to Shared Memory Architecture? (y/N): ## When prompted: Do you know/need a command to bind your jobs to specific nodes ? (like taskset -c). Enter N / your_specific_command: ## Say No, N ## When prompted "Do you have MPI, Scalapack and FFTW installed and intend to run finegrained parallel?" ### Say yes ## When prompted for compilers or libraries, just press return (accept the default choices). ## When prompted "Please specify whether you want to use FFTW3 (default) or FFTW2 (FFTW3 / FFTW2):", say FFTW3 ## "Please specify the ROOT-path of your FFTW installation" ## Type: /opt/intel/mkl/interfaces/fftw3xf ## Say YES to (Re-)Dimension parameters. Choose 'all'. Reset NMATMAX to > 2 or three times the default. For the case of comsics, NMATMAX=26000, NUME=2600. ## When prompted to 'Recompile', choose to recompile all. #### Wait for compilation to complete. If no error is prompted, compilation is successful. # To setup the environment for WIEN users, each user should execute /share/apps/wien2k/userconfig_lapw # When prompted to creat .rhost in userconfig, just say no. Creat remote hosts later. # . ~/.bashrc # /share/apps/wien2k/w2web. w2web will be configured for that user. You will be promted for admin and password. If left unasnwered, the default userid will be 'admin', and password will be 'password'. Enter yes to all the prompt. ## In case the default port number 7890 has already been used, simply issue # w2web -p portnumber # where portnumber is any number > 7890 (say 7900) # Launch wien2k web by issuing 'w2web'. Or alternatively, issue e.g., 'firefox http://HOSTNAME:7900' # A web browser will be fired, with the url e.g., http://HOSTNAME:7900 # Bookmark the url for future use.