source: proiecte/SolarSim/C/Serial/submit.sh @ 152

Last change on this file since 152 was 152, checked in by (none), 14 years ago
File size: 665 bytes
Line 
1#!/bin/bash
2
3wait_qstat() {
4#astept finalizarea executiei
5        while [ `qstat | wc -l` != 0 ]
6        do
7                sleep 1
8        done
9}
10
11#compilez sursele
12for MAKEFILE in `ls makefile*`
13do
14        make -f $MAKEFILE
15done
16
17for SOLARSIM in `ls bin`
18do
19        for YEARS in 10 # 2 3 # 4 5 6 7 8 9 10
20        do
21                let "SIM_STEPS = $YEARS * 307584"
22                qsub -q ibm-quad.q -cwd run.sh bin/$SOLARSIM data/astro.dat /dev/null $SIM_STEPS 100 0
23                #time bin/$SOLARSIM data/astro.dat /dev/null $SIM_STEPS 100 0
24        done
25done
26
27wait_qstat
28
29cat $PWD/run.sh.* | \
30        grep -v "Warning: no access to tty (Bad file descriptor)." | \
31        grep -v "Thus no job control in this shell."
32
33rm run.sh.*
34rm bin/*
35
Note: See TracBrowser for help on using the repository browser.