#!/bin/bash #PBS -N LAM_DCMIP #PBS -q std #PBS -n #PBS -l nodes=1:ppn=64 #PBS -l walltime=00:15:00 #PBS -l mem=50gb #PBS -l vmem=50gb #####comment:PBS -l mem=31922327552,ncpus=60 #Jobs start in the HOME directory, cd to submitted directory cd "$PBS_O_WORKDIR" ############################################################ NCPU=$(wc -l < $PBS_NODEFILE) awk "NR % 4 == 0" $PBS_NODEFILE | head -n 40 > nodelist.txt echo ------------------JOB SUMMARY-------------------------- echo 'PBS OUT: Job allocated on: '${NCPU}' cpu(s)' echo 'PBS OUT: Job running on the following node(s): ' cat nodelist.txt echo ------------------------------------------------------- echo PBS OUT: Job running on: $PBS_O_HOST echo PBS OUT: Originating queue: $PBS_O_QUEUE echo PBS OUT: Executing queue: $PBS_QUEUE echo PBS OUT: Work directory: $PBS_O_WORKDIR echo PBS OUT: Execution mode: $PBS_ENVIRONMENT echo PBS OUT: Job identifier: $PBS_JOBID echo PBS OUT: Job name: $PBS_JOBNAME echo PBS OUT: Node file: $PBS_NODEFILE echo PBS OUT: Current home directory: $PBS_O_HOME echo PBS OUT: PATH= $PBS_O_PATH echo ------------------------------------------------------- export OMP_NUM_THREADS=1 export OMP_STACKSIZE=128M ulimit -s unlimited . ../DYNAMICO/arch.env rm -rf gcm.log logs *.nc netcdf ln -s ../Data/*.nc mpirun -np 60 -cpus-per-proc $OMP_NUM_THREADS -bycore -bind-to-core -report-bindings ./gcm.exe >> gcm.log #gdb ./gcm.exe >> gcm.log date >> gcm.log mkdir -p netcdf cp gcm.log *.def netcdf mv *.nc netcdf mkdir -p logs cp *.xml logs cp -pr gcm.exe logs cp -pr ../DYNAMICO/src logs mv xios_client_*.err xios_client_*.out gcm.log logs