26.10.2014 Views

JAEA-Data/Code 2007-004 - Welcome to Research Group for ...

JAEA-Data/Code 2007-004 - Welcome to Research Group for ...

JAEA-Data/Code 2007-004 - Welcome to Research Group for ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4. Job Control Statements<br />

In this chapter, job control statements will be described by C-shell-script <strong>for</strong> the machine that<br />

works on the UNIX operating system. A typical sample shell-script is shown below. In this sample, it<br />

is assumed that the user’s home direc<strong>to</strong>ry ($Home) is ‘/home/okumura’ and the SRAC system is<br />

installed in the direc<strong>to</strong>ry ‘/home/Administra<strong>to</strong>r’.<br />

#!/bin/csh<br />

#------------------------------------------------------<br />

# ><br />

#<br />

#<br />

#<br />

#<br />

#<br />

At least, lines in bold face shoud be changed by each user<br />

#------------------------------------------------------<br />

#<br />

#============= <strong>to</strong> use native UNIX command<br />

alias mkdir mkdir<br />

alias cat cat<br />

alias cd cd ................................... (a)<br />

alias rm rm<br />

#<br />

#============= Set by user<br />

#<br />

# LMN : name of a load module in ~SRAC/bin/<br />

# BRN : burnup chain data file in ~SRAC/lib/burnlibT/<br />

# =u4cm6fp50bp16T : (standard model <strong>for</strong> thermal reac<strong>to</strong>rs)<br />

# ODR : direc<strong>to</strong>ry <strong>for</strong> output of text files<br />

# CASE : arbitrary case name <strong>for</strong> output files<br />

# WKDR : work direc<strong>to</strong>ry <strong>for</strong> SRAC execution<br />

# PDSD : direc<strong>to</strong>ry <strong>for</strong> PDS files<br />

#<br />

set SRAC DIR = /home/Administra<strong>to</strong>r/SRAC .............................. (b)<br />

set LMN = SRAC.100m ............................................. (c)<br />

set BRN<br />

set ODR<br />

set CASE<br />

set PDSD<br />

#<br />

#============= mkdir <strong>for</strong> PDS<br />

#<br />

# PDS_DIR : direc<strong>to</strong>ry name of PDS files<br />

# PDS file names must be identical <strong>to</strong> those in input data<br />

#<br />

set PDS_DIR = $PDSD/$CASE<br />

mkdir $PDS DIR<br />

mkdir $PDS DIR/UFAST<br />

mkdir $PDS DIR/UTHERMAL<br />

mkdir $PDS DIR/UMCROSS<br />

mkdir $PDS DIR/MACROWRK<br />

mkdir $PDS DIR/MACRO<br />

mkdir $PDS DIR/FLUX<br />

mkdir $PDS DIR/MICREF<br />

= u4cm6fp50bp16T ........................................ (d)<br />

= $HOME/Job/MyOutput .................................... (e)<br />

= Test-1 ................................................ (f)<br />

= $HOME/Job/Mypds ....................................... (g)<br />

......................................... (h)<br />

#<br />

#============= Change if necessary<br />

set LM = $SRAC_DIR/bin/$LMN .................................... (i)<br />

set DATE = `date +%b%d.%H.%M.%S` ................................. (j)<br />

set WKDR = $HOME/SRACtmp.$CASE.$DATE ............................. (k)<br />

mkdir $WKDR<br />

#<br />

191

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!