#!/bin/bash #PBS -S /bin/bash ## Set Walltime here in HH:MM:SS Format #PBS -l walltime= ## Set the number of nodes and PROCESSORS PER NODE(ppn) #PBS -l nodes=:ppn= ## Mention the Memory required by your job ## Not to exceed 2GB/processor #PBS -l pmem= ## The queue in which you want to put the job #PBS -q ## Job name that is displayed on qstat #PBS -N ## Output file from the PBS SCRIPT #PBS -o cd $PBS_O_WORKDIR echo "Current working directory is `pwd`" echo "Node file:" echo "---------------------" cat $PBS_NODEFILE echo "---------------------" NPROC=`cat $PBS_NODEFILE|wc -l` echo "Running on $NPROC processors." #### Creating Node File for NAMD #### JobID=`echo $PBS_JOBID | cut -f1 -d'.'` nodefile=./$JobID.nodelist echo group main > $nodefile nodes=`cat $PBS_NODEFILE` for node in $nodes do echo host $node >> $nodefile done echo "Created Nodefile : $nodefile" ##The folder/directory where the namd executable are located NAMDDIR= export CONV_RSH=ssh echo "Starting run at: `date`" #### CHANGE the names for the NAMD input (.conf file) and the output (.log file) ### $NAMDDIR/charmrun +p$NPROC ++nodelist $nodefile $NAMDDIR/namd2 *.conf > *.log echo "Job finished at: `date`"