diff --git a/luis/MyBatchHLSST20h.sh b/luis/MyBatchHLSST20h.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb464b4191101c2f00c3c6a4b0800b0db4d3f8cc --- /dev/null +++ b/luis/MyBatchHLSST20h.sh @@ -0,0 +1,24 @@ +#!/bin/bash -login +#PBS -l nodes=1:ppn=6 +#PBS -l walltime=12:00:00 +#PBS -l mem=16GB +#PBS -M weigelt@ife.uni-hannover.de +#PBS -m abe +#PBS -o /home/nhglmatt/Matlab/HLSST/${PBS_JOBNAME}_${PBS_JOBID}.txt +#PBS -k oe +#PBS -j oe + +# Call the calculation +for midx in `seq 1 1 12` +do + echo "Starting processing $name for year $year and month $midx ..." + # load Matlab module + module load MATLAB/2017a + # start Matlab + matlab –nosplash –nodesktop –nodisplay -r "cd('/home/nhglmatt/Matlab/HLSST/');myadd2path;hlSST('$name',[$year $midx $year $midx],true,'$TMPDIR')" + wait $! + # release Matlab module + module del MATLAB/2017a +done + + diff --git a/luis/hello.m b/luis/hello.m new file mode 100644 index 0000000000000000000000000000000000000000..dac544c58dcfbb73329cf28345c56a70ef422b79 --- /dev/null +++ b/luis/hello.m @@ -0,0 +1,4 @@ +% Example MATLAB script for Hello World +disp ’Hello World ’ +exit +% end of example file diff --git a/luis/luis_command.txt b/luis/luis_command.txt new file mode 100644 index 0000000000000000000000000000000000000000..ec7af0cfda35d7620e8ad08dfaa4b8d095ce10e6 --- /dev/null +++ b/luis/luis_command.txt @@ -0,0 +1,12 @@ +login + +ssh nhbfneda@login.cluster.uni-hannover.de + +scp /home/neda/Documents/code/gracetools-master/gfr_parallel.m nhbfneda@login.cluster.uni-hannover.de:/home/nhbfneda/ + +-r for directory + +for mac +ssh aeissh +ssh luis + diff --git a/luis/matlab-job-serial.sh b/luis/matlab-job-serial.sh new file mode 100644 index 0000000000000000000000000000000000000000..87f92836e4fd6e09af4fdb90853a02af574abc04 --- /dev/null +++ b/luis/matlab-job-serial.sh @@ -0,0 +1,18 @@ +#!/bin/bash +#PBS -N matlab_serial +#PBS -M my@email.address +#PBS -m bae +#PBS -j oe +#PBS -l nodes =1:ppn=1 +#PBS -l walltime =00:10:00 +#PBS -l mem=4gb +# Compute node the job ran on +echo "Job ran on:" $HOSTNAME +# Load modules +module load MATLAB /2017a +# Change to work dir: +cd $PBS_O_WORKDIR +# Log file name +LOGFILE=$(echo $PBS_JOBID | cut -d"." -f1).log +# The program to run +matlab -nodesktop -nosplash < hello.m > $LOGFILE 2>&1