Script file

Following is the script file, which uses various commands etc in unix

 

rm fort.*                                                                        #remove old files if you wish

for k in 1 # $(seq 1 1 8)                                                #k takes the values 1, 2,  ..8

do

for i in $(seq 1.0 -0.01 0.50) #eq 0.01 0.10 0.50)

do

#k=$((($i+3)/2))                                             #do some calculation if you wish

for j in 1 # $(seq 20 5 150)

do

rm test.in

echo “$””casecard
casename= nirvana
$” >test.in

echo “$””stopcard
stop_program_flag = 0
$” >>test.in

./testdel  #execulatable of the program
echo -ne “$i ” >>Bond_Perco_Transition.txt  #output file, adds a column in the text file
cat fort.32 >>Bond_Perco_Transition.txt   # output file again
done

done

done

echo “Code 10X10 chern completed” | mail -s “run complete” email-id  #the computer sends you an email saying the program is done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s