Skip to content

Commit

Permalink
Merge pull request #61 from uit-no/radovan/gaussian-doc
Browse files Browse the repository at this point in the history
Refactor Gaussian documentation
  • Loading branch information
eta000 committed Aug 21, 2019
2 parents e2e038d + abb09be commit 708fa72
Show file tree
Hide file tree
Showing 12 changed files with 233 additions and 342 deletions.
26 changes: 11 additions & 15 deletions applications/chemistry/Gaussian/GaussView.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@

======================
GaussView for Gaussian
======================
=========
GaussView
=========

Gaussview is a visualization program that can be used to open Gaussian output
files and checkpoint files (.chk) to display structures, molecular orbitals,
normal modes, etc. You can also set up jobs and submit them directly.

Official documentation: https://gaussian.com/gaussview6/

GaussView on Stallo
--------------------

The GaussView version for Gaussian 09 is release 5.0.8 To load and run
GaussView on Stallo, you first have to load the relevant gaussian module, and
then call gaussview::

$ module load Gaussian/09.d01
$ gview
GaussView on Stallo
-------------------

More information about GaussView
--------------------------------
To load and run GaussView on Stallo, load the relevant Gaussian module, and
then call GaussView::

* General info about the program: http://www.gaussian.com/g_prod/gv5.htm
* Online reference: http://www.gaussian.com/g_tech/gv5ref/gv5ref_toc.htm
$ module avail Gaussian
$ module load Gaussian/g16_B.01
$ gview
102 changes: 0 additions & 102 deletions applications/chemistry/Gaussian/Gaussian.rst

This file was deleted.

21 changes: 21 additions & 0 deletions applications/chemistry/Gaussian/example.com
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
%chk=example
%mem=500MB
#p b3lyp/cc-pVDZ opt

benzene molecule example

0 1
C 0.00000 1.40272 0.00000
C 0.00000 -1.40272 0.00000
C 1.21479 0.70136 0.00000
C 1.21479 -0.70136 0.00000
C -1.21479 0.70136 0.00000
C -1.21479 -0.70136 0.00000
H 0.00000 2.49029 0.00000
H 0.00000 -2.49029 0.00000
H 2.15666 1.24515 0.00000
H 2.15666 -1.24515 0.00000
H -2.15666 1.24515 0.00000
H -2.15666 -1.24515 0.00000


61 changes: 0 additions & 61 deletions applications/chemistry/Gaussian/firsttime_gaussian.rst

This file was deleted.

61 changes: 61 additions & 0 deletions applications/chemistry/Gaussian/gaussian-runscript.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash -l

#SBATCH --account=nn....k

#SBATCH --job-name=example
#SBATCH --output=example.log

# Stallo nodes have either 16 or 20 cores: 80 is a multiple of both
#SBATCH --ntasks=80

# make sure no other job runs on the same node
#SBATCH --exclusive

# syntax is DD-HH:MM:SS
#SBATCH --time=00-00:30:00

# allocating 30 GB on a node and leaving a bit over 2 GB for the system
#SBATCH --mem-per-cpu=1500MB

################################################################################
# no bash commands above this line
# all sbatch directives need to be placed before the first bash command

# name of the input file without the .com extention
input=example

# flush the environment for unwanted settings
module --quiet purge
# load default program system settings
module load Gaussian/g16_B.01

# set the heap size for the job to 20 GB
export GAUSS_LFLAGS2="--LindaOptions -s 20000000"

# split large temporary files into smaller parts
lfs setstripe –c 8 .

# create scratch space for the job
export GAUSS_SCRDIR=/global/work/${USER}/${SLURM_JOB_ID}
tempdir=${GAUSS_SCRDIR}
mkdir -p ${tempdir}

# copy input and checkpoint file to scratch directory
cp ${SLURM_SUBMIT_DIR}/${input}.com ${tempdir}
if [ -f "${SLURM_SUBMIT_DIR}/${input}.chk" ]; then
cp ${SLURM_SUBMIT_DIR}/${input}.chk ${tempdir}
fi

# run the code
cd ${tempdir}
time g16.ib ${input}.com > ${input}.out

# copy output and checkpoint file back
cp ${input}.out ${SLURM_SUBMIT_DIR}
cp ${input}.chk ${SLURM_SUBMIT_DIR}

# remove the scratch directory after the job is done
# cd ${SLURM_SUBMIT_DIR}
# rm -rf /global/work/${USER}/${SLURM_JOB_ID}

exit 0

0 comments on commit 708fa72

Please sign in to comment.