Wien2kを利用するには、Wien2kのルートディレクトリの指定、実行ファイルへの パスの設定等をユーザ毎に行う必要があります。これらの設定を簡単に行うための ユーティリティが『userconfig_lapw』になります。
Wien2kルートディレクトリに移動し、userconfig_lapwスクリプトを実行します。 その後、各質問に答えていき、ユーザに適した環境設定を行います。
asc@epsilon:~/work/wien2k> ./userconfig_lapw
cp: cannot stat `/home/asc/.cshrc': そのようなファイルやディレクトリはありません
grep: /home/asc/.cshrc: そのようなファイルやディレクトリはありません
*********************************************************"
* WIEN 2k *"
* user configuration *"
*********************************************************"
Last configuration: 2008年 2月 26日 火曜日 13:32:13 JST
Wien Version: WIEN2k_08.1 (Release 14/12/2007)
System: linuxif8
Setting up user: asc
Home directory: /home/asc
Shell: bash
Specify your prefered editor (default is emacs):
editor shall be:
Set editor to emacs (Y/n)
Specify your prefered scratch directory, where big case.vector files
can be stored (Recommended is your working dir., just enter RETURN key):
scratch directory:
Set scratch directory to working directory (Y/n)
Specify your program to read pdf files (default is acroread)
(on some Linux systems use xpdf):
Set PDFREADER to acroread (Y/n)
!!! The following lines will be added to your .bashrc file if you continue !!!
A copy of your current .bashrc will be saved under .bashrc.savelapw!
# added by WIEN2k: BEGIN
# --------------------------------------------------------
alias lsi="ls -aslp *.in*"
alias lso="ls -aslp *.ou*"
alias lsd="ls -aslp *.def"
alias lsc="ls -aslp *.cl*"
alias lss="ls -aslp *.sc*"
alias lse="ls -aslp *.error"
alias pslapw="ps -ef |grep "lapw""
#export OMP_NUM_THREADS=2
#export LD_LIBRARY_PATH=.....
export EDITOR="emacs"
export SCRATCH=./
export WIENROOT=/home/asc/work/wien2k
export STRUCTEDIT_PATH=$WIENROOT/SRC_structeditor/bin
export PDFREADER=acroread
export PATH=$PATH:$WIENROOT:$STRUCTEDIT_PATH:.
export OCTAVE_EXEC_PATH=${PATH}::
export OCTAVE_PATH=${STRUCTEDIT_PATH}::
ulimit -s unlimited
# --------------------------------------------------------
Do you want to continue (Y/n)?
*) adding aliases
*) adding environment variables
*) adding path to wien programs and set unlimited stacksize
done.
If you want to use k-point parallel execution on a non-shared memory
system, you must be able to login without specifying a password.
When using rsh you should modify your .rhosts file, if you are
using ssh you must generate (ssh-keygen) and transfer your "public keys".
Edit .rhosts file now? (y/N)
*********************************************************
* WIEN 2k *
* user configuration *
*********************************************************
Your user environment for WIEN users is now configured.
You have to restart your shell before the changes come
into effect (execute: . ~/.bashrc).
Start "w2web", define "user/password" and select a port. Then point
your web-browser to the proper address:PORT.
For proper usage of scfmonitor please add a line in ~/.Xdefaults :
gnuplot*raise: off
We wish you GOOD LUCK with your calculations.
Your WIEN2k Team
asc@epsilon:~/work/wien2k>
以上の操作で、ホームディレクトリのシェルリソースファイルに設定が書き込まれます。 再ログインまたはリソースファイルを読み込み、設定を有効にすれば Wien2kを利用できるようになります。
Wien2k実行モジュールが共有ライブラリを使用する場合(ライブラリを動的にリンクできなかった
場合等)、LD_LIBRARY_PATHやDYLD_LIBRARY_PATH等を使用し、ライブラリサーチパスを指定する
必要があります。テキストエディタ等で適宜変更ください。
(記述例)
export DYLD_LIBRARY_PATH=/Library/Frameworks/Intel_MKL.framework/Libraries/em64t
(掲載日:2008年2月27日)