#!/bin/bash
#----------------------------------------------------
# Sample Slurm job script
#   for TACC Frontera CLX nodes
#
#   *** Serial Job in Normal Queue ***
# 
# Last revised: 20 May 2019
#
# Notes:
#
#  -- Copy/edit this script as desired.  Launch by executing
#     "sbatch clx.serial.slurm" on a Frontera login node.
#
#  -- Serial codes run on a single node (upper case N = 1).
#       A serial code ignores the value of lower case n,
#       but slurm needs a plausible value to schedule the job.
#
#  -- Use TACC's launcher utility to run multiple serial 
#       executables at the same time, execute "module load launcher" 
#       followed by "module help launcher".
#----------------------------------------------------

#SBATCH -J post    # Job name
#SBATCH -o post.o%j       # Name of stdout output file
#SBATCH -e post.e%j       # Name of stderr error file
##SBATCH -p flex          # Queue (partition) name
#SBATCH -p small          # Queue (partition) name
#SBATCH -N 1               # Total # of nodes (must be 1 for serial)
#SBATCH -n 1              # Total # of mpi tasks (should be 1 for serial)
#SBATCH -t 48:00:00        # Run time (hh:mm:ss)
#SBATCH --mail-type=all    # Send email at begin and end of job
##SBATCH -A CDA21001     # Project/Allocation name (req'd if you have more than 1)
#SBATCH --mail-user=hcyu@vims.edu

# Any other commands must follow all #SBATCH directives...
module load netcdf/4.7.4 nco
module save
module list
pwd
date

# Launch serial code...
./mv2new_folder.sh
