Skip to content

Commit ee812cb

Browse files
committed
Merge branch 'develop' of https://github.com/QMCPACK/qmcpack into j3_ion_deriv
2 parents 47e4d0d + ed6701b commit ee812cb

File tree

3 files changed

+54
-58
lines changed

3 files changed

+54
-58
lines changed

docs/installation.rst

+34-34
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ are given in the referenced sections.
2929

3030
#. Run the cmake configure step and build with make
3131
(:ref:`cmake` and :ref:`cmakequick`). Examples for common systems are given in :ref:`installexamples`. To activate workflow
32-
tests for Quantum ESPRESSO, RMG, or PYSCF, be sure to specify QE_BIN, RMG_BIN, or ensure that the python modules are
32+
tests for Quantum ESPRESSO, RMG, or PySCF, be sure to specify QE_BIN, RMG_BIN, or ensure that the python modules are
3333
available when cmake is run.
3434

3535
#. Run the tests to verify QMCPACK
@@ -1308,7 +1308,7 @@ facility. Additionally, Spack packages compiled by the facility can be
13081308
reused by chaining Spack installations
13091309
https://spack.readthedocs.io/en/latest/chain.html.
13101310

1311-
Installing Quantum-ESPRESSO with Spack
1311+
Installing Quantum ESPRESSO with Spack
13121312
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13131313

13141314
More information about the QE Spack package can be obtained directly
@@ -1679,23 +1679,39 @@ for the creation of projectors in UPF can introduce severe errors and inaccuraci
16791679
Installing Quantum ESPRESSO and pw2qmcpack
16801680
------------------------------------------
16811681

1682-
For trial wavefunctions obtained in a plane-wave basis, we mainly
1683-
support QE. Note that ABINIT and QBox were supported historically
1684-
and could be reactivated.
1682+
For trial wavefunctions obtained in a plane-wave basis, we mainly support Quantum ESPRESSO (QE). QBox support is also available, and
1683+
support was ABINIT was available historically and could be reactivated.
16851684

1686-
QE stores wavefunctions in a nonstandard internal
1687-
"save" format. To convert these to a conventional HDF5 format file
1688-
we have developed a converter---pw2qmcpack---which is an add-on to the
1689-
QE distribution.
1685+
We recommend using the latest version of Quantum ESPRESSO.
16901686

1687+
To convert the QE wavefunctions to the HDF5 format used by QMCPACK file we have developed a converter -- pw2qmcpack -- which is an
1688+
add-on to the QE distribution.
16911689

1692-
Quantum ESPRESSO (<=6.8)
1693-
~~~~~~~~~~~~~~~~~~~~~~~~
1690+
Quantum ESPRESSO (>7.0)
1691+
~~~~~~~~~~~~~~~~~~~~~~~
1692+
1693+
pw2qmcpack is configured via a plugin as part of the Quantum ESPRESSO installation. Simply specify
1694+
``-DQE_ENABLE_PLUGINS=pw2qmcpack`` as part of the CMake configure step. Full QE CMake documentation can be found at
1695+
https://gitlab.com/QEF/q-e/-/wikis/Developers/CMake-build-system . Excepting for a very large change to QE, the converter is
1696+
expected to work with any recent version.
1697+
1698+
::
1699+
1700+
mkdir build_mpi
1701+
cd build_mpi
1702+
cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 -DQE_ENABLE_PLUGINS=pw2qmcpack ..
1703+
make -j 16
1704+
1705+
1706+
Quantum ESPRESSO converter support for old versions via source code patches
1707+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16941708

1695-
To simplify the process of patching QE we have developed
1696-
a script that will automatically download and patch the source
1697-
code. The patches are specific to each version. For example, to download and
1698-
patch QE v6.3:
1709+
For QE 6.3-7.0, the pw2qmcpack converter can be addded via a source code patch specific to the specific version of QE. **Note that
1710+
this route is no longer recommended. Unless a specific old version of QE is required, users should use the latest version of QE and
1711+
the cmake route described above.**
1712+
1713+
To simplify the process of patching QE we developed to script to automatically download and patch the source code. For example, to
1714+
download and patch QE v6.3:
16991715

17001716
::
17011717

@@ -1724,11 +1740,9 @@ the HDF5 capability enabled in either way:
17241740

17251741
The complete process is described in external\_codes/quantum\_espresso/README.
17261742

1727-
Quantum ESPRESSO (6.7, 6.8 and 7.0)
1728-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1729-
After patching the QE source code like above, users may use CMake instead of configure to build QE with pw2qmcpack.
1730-
Options needed to enable pw2qmcpack have been set ON by default.
1731-
A HDF5 library installation with Fortran support is required.
1743+
- Note that for QE 6.7, 6.8 and 7.0, after patching the QE source code like above, users may use CMake instead of configure to build
1744+
QE with pw2qmcpack. These are the earliest versions for which the cmake support was mature enough. Options needed to enable
1745+
pw2qmcpack have been set ON by default. A HDF5 library installation with Fortran support is required.
17321746

17331747
::
17341748

@@ -1737,20 +1751,6 @@ A HDF5 library installation with Fortran support is required.
17371751
cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 ..
17381752
make -j 16
17391753

1740-
Quantum ESPRESSO (>7.0)
1741-
~~~~~~~~~~~~~~~~~~~~~~~
1742-
Due to incorporation of pw2qmcpack as a plugin, there is no longer any need to patch QE.
1743-
Users may use upstream QE and activate the plugin by specifying ``-DQE_ENABLE_PLUGINS=pw2qmcpack`` at the CMake configure step.
1744-
Full QE CMake documentation can be found at
1745-
https://gitlab.com/QEF/q-e/-/wikis/Developers/CMake-build-system .
1746-
1747-
::
1748-
1749-
mkdir build_mpi
1750-
cd build_mpi
1751-
cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_Fortran_COMPILER=mpif90 -DQE_ENABLE_PLUGINS=pw2qmcpack ..
1752-
make -j 16
1753-
17541754
Testing QE after installation
17551755
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17561756
Testing the QE to QMCPACK workflow after building QE and QMCPACK is highly recommended.

external_codes/quantum_espresso/README

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
1-
The files in this directory support making a modified version of
2-
quantum espresso that includes the pw2qmcpack converter.
1+
Quantum ESPRESSO v7.0+
2+
~~~~~~~~~~~~~~~~~~~~~~
3+
4+
To configure Quantum ESPRESSO with the pw2qmcpack converter, use the CMake
5+
configuration option when building Quantum ESPRESSO, as described in the
6+
manual. i.e. Add ``-DQE_ENABLE_PLUGINS=pw2qmcpack``.
7+
8+
Quantum ESPRESSO v6.3-v7.0
9+
~~~~~~~~~~~~~~~~~~~~~~~~~~
10+
11+
NOTE: Users are advised to only use the latest version of Quantum
12+
ESPRESSO via the route described above.
13+
14+
The files in this directory support making a modified version of Quantum
15+
ESPRESSO that includes the pw2qmcpack converter and are provided for
16+
backwards compatibility.
317

418
The download_and_patch_qe6.4.1.sh script will automatically download
5-
and patch quantum espresso. Similarly named scripts are provided for
19+
and patch Quantum ESPRESSO. Similarly named scripts are provided for
620
earlier versions. After patching you can move the espresso directory
721
anywhere convenient. There is no need to keep it within the QMCPACK
822
source tree. However, if you are using NEXUS you should update your
923
PATH so that the correct executables are found.
1024

11-
If you have already downloaded quantum espresso you can, e.g.,
25+
If you have already downloaded Quantum ESPRESSO you can, e.g.,
1226

1327
patch -p1 -i ../add_pw2qmcpack_to_qe-6.4.1.diff
1428

15-
from within the top level quantum espresso directory.
29+
from within the top level Quantum ESPRESSO directory.
1630

17-
Due to internal changes in quantum espresso, generally the patch and
31+
Due to internal changes in Quantum ESPRESSO, generally the patch and
1832
pw2qmcpack files only work for one specific version.
1933

2034
Notes for maintainers:

external_codes/quantum_espresso/build_qe_olcf_summit.sh

-18
This file was deleted.

0 commit comments

Comments
 (0)