Einführung in die Rechendienste - RRZN
Einführung in die Rechendienste - RRZN
Einführung in die Rechendienste - RRZN
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Beispiel-Batchskript (serielles GAMS-Programm)<br />
GAMS-Programm auf e<strong>in</strong>em (1) Prozessorkern laufen lassen.<br />
1 #!/b<strong>in</strong>/bash -log<strong>in</strong><br />
2 #PBS -N GAMS_trnsport<br />
3 #PBS -M ich@me<strong>in</strong>e.mail.adresse<br />
4 #PBS -m ae<br />
5 #PBS -j oe<br />
6 #PBS -l nodes=1:ppn=1<br />
7 #PBS -l walltime=00:10:00<br />
8 #PBS -l mem=4gb<br />
9<br />
0 # show which computer the job ran on<br />
1 echo "Job ran on:" $(hostname)<br />
2 # load the relevant modules<br />
3 module load gams<br />
4 # change to work dir<br />
5 cd $PBS_O_WORKDIR<br />
6 # the program to run<br />
7 gams trnsport.gms lo=2 lf=transport_log.log<br />
⇐Zurück zur Batchskriptliste<br />
Compute<strong>die</strong>nste am Rechenzentrum Scientific Comput<strong>in</strong>g Gruppe | 7. November 2013 51