next up previous contents index
Next: 1.1.5 Input data script Up: 1.1 Outline of the Previous: 1.1.3 Creating working directory(作業ディレクトリーの作成)

1.1.4 Controlling script(計算制御スクリプト)

Because the calculation of this program is carried out through continuously execution of a sequence of commands which is written in script files, you must set proper script files. The most significant script is cpvo.sh from which the program begins. In this file, home-directory(${hmdir}), work-directory(${wkdir}), directory-name(${dirname}), running-directory(${rundir}), program-directory (${pgdir}), temporary-directory(${tmpdir}), etc. are specified.

計算の実行は、スクリプトに書かれた一連のコマンド群を連続的に行なうことにより行なわれるので、 スクリプトファイルを適切に設定する必要がある。最上位のスクリプトは、cpvo.shであり、 必ずこのスクリプトから計算が開始される。 ホームディレクトリー(${hmdir})、 ワークディレクトリー(${wkdir})、 ディレクトリーネーム(${dirname})、 実行ディレクトリー(${rundir})、 プログラムディレクトリー(${pgdir})、 テンポラリーディレクトリー(${tmpdir})などを指定する。
%> vi cpvo.sh

For assigning hmdir, wkdir and dirname, you must take care to contradict a present directory. If dirname is correctly assigned, the data which exist under application/ directroy are not damaged. For program directory(${pgdir}) and temporary directory(${tmpdir}), in order to promote the efficiency of the calculation, you should assign another directory or a disk whose control access is rapid.

hmdir,wkdir,dirnameに 関しては、現在のディレクトリーと矛盾しないように指定する。 dirnameが正しく指定されていればapplication/下の他の ディレクトリーに存在するデータを毀損することはない。 プログラムディレクトリー(${pgdir})、 テンポラリーディレクトリー(${tmpdir}) には、計算環境を考えて、制御アクセスが早いディスクまたは 別のディレクトリーを指定するとよい。

hmdir=/tmp.space/oda/CPVOP
wkdir=${hmdir}/application
tmpsys=/mic2_work/oda
dirname=si
srcdir=${hmdir}/source
ppdir=${hmdir}/ppfile
kpdir=${hmdir}/kpfile
s0rdir=${hmdir}/s0rfile
rundir=${wkdir}/${dirname}
pgdir=${tmpsys}/${dirname}.tmp
tmpdir=${tmpsys}/${dirname}.tmp

Usually, at the end of this script file cpvo.sh, exlist.sh is executed. Though existing script file group is written in exlist.sh, you must assign that necessary execute scripts are executed.

通常このスクリプトcpvo.shの最後で、exlist.sh を実行させる。exlist.shには、既存のスクリプト群が書かれて いるが、必要な実行スクリプトが実行されるようにしておく。

It is necessary to assign a part of input data for cpvo.sh. With searching a string of characters "edit", you must assign proper values or strings to variables which exists after that string of characters. Detail of each variable is explained in section1.3.

cpvo.shにも、一部の入力データを指定しなければならない。editという文字列を検索しながら、 その後に現れる変数に適切な数値または文字列を指定する。各変数の説明は、節1.3で説明されている。


next up previous contents index
Next: 1.1.5 Input data script Up: 1.1 Outline of the Previous: 1.1.3 Creating working directory(作業ディレクトリーの作成)
Copyright (C), Tatsuki Oda (oda@cphys.s.kanazawa-u.ac.jp, Kanazawa University)