next up previous contents index
Next: 2.13 Function of TACCELE(TACCELEの機能) Up: 2 Calculation control parameter(計算制御パラメータ) Previous: 2.11 Function of TEPRT(TEPRTの機能)


2.12 Function of TTIMELM(TTIMELMの機能)

In a computer system which adopts a form of jobs, there is a calculation time limit in a single job. TTIMELM is used in order not to exceed this time limit. If calculation time exceeds (TIMELM$\times$RTIME), the calculation executes end work and terminates. Specification by the input file cpv05.in is performed as follows.

計算を行う計算機システムでジョブ形式を採用しているシステムでは、1回のジョブ 計算時間に限りがある。その計算時間を越えて計算が継続しないようにあらかじめ 制限時間を計算コードに与えるために、TTIMELMを使用する。計算時間が (TIMELM$\times$RTIME)を越えたあと計算終了作業に入り、終了する。 入力ファイルcpv05.inでの指定は、

1  .true.  300000.  0.95              NCHKI TTIMELM TIMELM RTIME
のように行う。

Time of TIMELM is unit of second. NCHKI is used to stop normally the job which is runnning through the end work of calculation before not passing through the number of step specified by NOMORE. It is used with the next file.

TIMELMの時間は、秒単位である。 NCHKIは、NOMOREで指定されたステップ回数を経ない前に、 走っているジョブを計算終了作業を経て正常に停止させるためのものである。 次のファイルと共に用いる。

cat > ${tmpdir}/chkt.in << end
0
end

In the case of NCHKI=1, the file ${tmpdir}/chkt.in is read for each step. If 1 has been written there, the calculation executes the end work and is normally terminated. Therefore,if you want to terminate a program immediately, you should rewrite 0 to 1 in a file ${tmpdir}/chkt.in.

上記のNCHKI=1の場合、毎ステップ毎に、 ファイル${tmpdir}/chkt.inを読み込み、1が入っていればそこから 計算終了作業に入り、計算を正常終了させる。 したがって、通常プログラムを緊急に終了させたいときに、 ファイル${tmpdir}/chkt.inを0から1に書き換えて計算を終了させる。


next up previous contents index
Next: 2.13 Function of TACCELE(TACCELEの機能) Up: 2 Calculation control parameter(計算制御パラメータ) Previous: 2.11 Function of TEPRT(TEPRTの機能)
Copyright (C), Tatsuki Oda (oda@cphys.s.kanazawa-u.ac.jp, Kanazawa University)