Difference between revisions of "GPAW Guide"

From Storrs HPC Wiki
Jump to: navigation, search
(Initial GPAW guide)
(Fix author per setup.py)
Line 1: Line 1:
| name          = GPAW
| name          = GPAW
| author        = Ole Tange
| author        = GPAW community
| website        = [https://wiki.fysik.dtu.dk/gpaw/ https://wiki.fysik.dtu.dk/gpaw/]
| website        = [https://wiki.fysik.dtu.dk/gpaw/ https://wiki.fysik.dtu.dk/gpaw/]
| source        = [https://gitlab.com/gpaw/gpaw GitLab]
| source        = [https://gitlab.com/gpaw/gpaw GitLab]

Latest revision as of 14:02, 29 December 2017

Author GPAW community
Website https://wiki.fysik.dtu.dk/gpaw/
Source GitLab
Category Electronic structure theory
Help docs
mailing list

GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE).

SLURM script

#SBATCH --partition debug
#SBATCH --ntasks 2
#SBATCH --output out.gpaw

# Clear the old SLURM output.
echo -n > out.gpaw

# Record debug information about our job.
scontrol show job ${SLURM_JOB_ID}

# Load the GPAW module.
gpaw_prereq=$(module show gpaw/${gpaw_version} |& sed -n 's#prereq##p')
module purge
module load ${gpaw_prereq} gpaw/${gpaw_version}
module list
# Disable OpenMPI warnings about creating forks and not using GPU.
export \
    OMPI_MCA_mpi_warn_on_fork=0 \

# Get the exercise file described in
# https://wiki.fysik.dtu.dk/gpaw/documentation/parallel_runs/parallel_runs.html#running-different-calculations-in-parallel
wget -nc https://gitlab.com/gpaw/gpaw/raw/master/doc/documentation/parallel_runs/parallel_atomization.py

srun -n ${SLURM_NTASKS} \
     gpaw-python \

After the job completes, you should see two output files 0.txt and 1.txt for the 2 parallel calculations and at the end of your out.gpaw file you should see the result of "Atomization energy: -10.6382 eV".

This particular example was only able to take advantage of 2 CPU cores. For your own calculation you may wish to change the highlighted lines as appropriate.