{"id":2300,"date":"2019-02-22T11:51:24","date_gmt":"2019-02-22T11:51:24","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2300"},"modified":"2026-10-19T17:29:35","modified_gmt":"2026-10-19T16:29:35","slug":"nwchem","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/nwchem\/","title":{"rendered":"NWChem"},"content":{"rendered":"<table class=\"hint\">\n<tr>\n<td><em>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using <a href=\"\/csf3\/software\/tools\/gedit\/\">gedit<\/a>. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the <a href=\"\/csf3\/getting-started\/using-from-windows\/\">guide to using the system from windows<\/a>, in particular the section about <a href=\"\/csf3\/getting-started\/using-from-windows\/#textfiles\">text &amp; batch submission script files<\/a><\/em>.\n<\/td>\n<\/tr>\n<\/table>\n<h2>Overview<\/h2>\n<p>NWChem is a suite of highly scalable tools for atomistic computational chemistry, offering a wide range of quantum, classical and combined approximations. Molecular electronic structure calculations using <em>ab initio<\/em>, DFT and higher order methods utilise Gaussian orbitals, while plane wave + pseudopotential methods are available for periodic calculations. Most of these methods can also be used in conjunction with the QM\/MM and MD modules.<\/p>\n<h2>Set up procedure<\/h2>\n<p>NWChem can be accessed by loading the module file as follows:<\/p>\n<pre>\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n<\/pre>\n<p>This will also automatically load the appropriate MPI modulefile into your environment and set some environment variables where NWChem will look for basis set libraries, etc.<\/p>\n<h2>Running the application<\/h2>\n<p>Please do not run NWChem on the login nodes. Jobs should instead be submitted to the compute nodes via the batch system, SGE. Some example jobs are given below.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Two NWChem executables are available: <code>nwchem<\/code> for MPI jobs and <code>nwchem.serial<\/code> for serial jobs. An example jobscript for a serial job is shown below:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p serial        # (--partition) Run on the Intel 1-core job compute nodes\r\n#SBATCH -n 1             # (--ntasks) Optional, as it is always 1 in serial jobs.\r\n#SBATCH -t 0-2           # Wallclock time limit. 0-2 is 2 days, max permitted is 7-0.\r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\n# Use the serial nwchem executable\r\nnwchem.serial h2o.nw\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>sbatch scriptname<\/pre>\n<h3>Single node parallel batch job submission (2-40 cores)<\/h3>\n<p>An example jobscript for a <em>single node<\/em> MPI job is given below.<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore_small      # Run on the nodes dedicated to jobs of size 2--40 cores.\r\n#SBATCH -n 32                   # Request 32 cores\r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\n# The nwchem executable is an MPI (parallel) executable\r\nmpirun -n $SLURM_NTASKS nwchem uo2.nw\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>sbatch scriptname<\/pre>\n<h3>Multi-node parallel batch job submission (80-1280 cores in multiples of 40)<\/h3>\n<p>The following jobscript requests 120 cores (three 40-core nodes with Infiniband network):<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#SBATCH -p multicore         # (--partition) Run on the 40-core nodes with fast InfiniBand networking\r\n#SBATCH -N 3                 # (--nodes) Number of nodes, which must be specified explicitly\r\n#SBATCH -n 120               # (--ntasks) Request 120 cores\r\n#SBATCH -t 0-2               # Wallclock time limit. 0-2 is 2 days, max permitted is 7-0\r\n\r\nmodule purge\r\nmodule load apps\/intel-17.0\/nwchem\/6.8.1\r\n\r\nmpirun -n $SLURM_NTASKS nwchem p2ta.nw\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>sbatch scriptname<\/pre>\n<div class=\"hidden\">\n<h3>Memory management<\/h3>\n<p>For many (typically smaller) jobs the default memory allocation set by NWChem is sufficient. However, memory intensive jobs will often fail at some point during their runtime with seemingly obscure errors, such as &#8220;ARMCI DASSERT fail&#8221;.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you are a windows user &#8211; please ensure you create your jobscript ON THE CSF directly using gedit. This will prevent your job going into error (Eqw). Text files created on windows have hidden characters that linux cannot read. For further information please see the guide to using the system from windows, in particular the section about text &amp; batch submission script files. Overview NWChem is a suite of highly scalable tools for atomistic.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/nwchem\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2300","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2300"}],"version-history":[{"count":12,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300\/revisions"}],"predecessor-version":[{"id":12932,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2300\/revisions\/12932"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=2300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}