-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from deepmodeling/develop
v2.3.1
- Loading branch information
Showing
345 changed files
with
7,610 additions
and
1,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,18 @@ | ||
FROM debian:bullseye-slim | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends libopenblas-dev liblapack-dev libscalapack-mpi-dev git g++ gfortran libssl-dev make cmake vim wget bc unzip python3-numpy | ||
ENV OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 OMPI_MCA_btl_vader_single_copy_mechanism=none | ||
|
||
ENV GIT_SSL_NO_VERIFY=1 TERM=xterm-256color | ||
|
||
RUN cd /tmp \ | ||
&& git clone https://github.com/USCiLab/cereal.git \ | ||
&& cp -r cereal/include /usr/local \ | ||
&& rm -rf cereal | ||
|
||
RUN cd /tmp \ | ||
&& wget https://elpa.mpcdf.mpg.de/software/tarball-archive/Releases/2021.05.002/elpa-2021.05.002.tar.gz --no-check-certificate --quiet \ | ||
&& tar xzf elpa-2021.05.002.tar.gz && rm elpa-2021.05.002.tar.gz \ | ||
&& cd elpa-2021.05.002 && mkdir build && cd build \ | ||
&& ../configure CFLAGS="-O3 -march=native -funsafe-loop-optimizations -funsafe-math-optimizations -ftree-vect-loop-version -ftree-vectorize" \ | ||
FCFLAGS="-O2 -mavx" --disable-avx512 \ | ||
&& make -j8 && make PREFIX=/usr/local install \ | ||
&& ln -s /usr/local/include/elpa-2021.05.002/elpa /usr/local/include/ \ | ||
&& cd /tmp && rm -rf elpa-2021.05.002 | ||
|
||
RUN cd /tmp \ | ||
&& wget http://www.fftw.org/fftw-3.3.9.tar.gz --no-check-certificate --quiet \ | ||
&& tar zxvf fftw-3.3.9.tar.gz \ | ||
&& cd fftw-3.3.9 \ | ||
&& ./configure --enable-mpi-fortran --enable-orterun-prefix-by-default FC=gfortran \ | ||
&& make -j8 && make PREFIX=/usr/local install \ | ||
&& cd /tmp && rm -rf fftw-3.3.9 && rm fftw-3.3.9.tar.gz | ||
|
||
RUN cd /tmp \ | ||
&& wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.9.1%2Bcpu.zip --no-check-certificate --quiet \ | ||
&& unzip libtorch-cxx11-abi-shared-with-deps-1.9.1+cpu.zip \ | ||
&& cp -r libtorch/include /usr/local \ | ||
&& cp -r libtorch/lib /usr/local \ | ||
&& cp -r libtorch/share /usr/local \ | ||
&& rm -rf libtorch | ||
|
||
RUN cd /tmp \ | ||
&& wget https://gitlab.com/libxc/libxc/-/archive/5.1.5/libxc-5.1.5.tar.gz --no-check-certificate --quiet \ | ||
&& tar xzf libxc-5.1.5.tar.gz \ | ||
&& cd libxc-5.1.5 \ | ||
&& mkdir build \ | ||
&& cmake -B build -DBUILD_TESTING=OFF \ | ||
&& cmake --build build \ | ||
&& cmake --install build \ | ||
&& cd /tmp \ | ||
&& rm -rf libxc-5.1.5 \ | ||
&& rm libxc-5.1.5.tar.gz | ||
|
||
RUN cd /tmp \ | ||
&& git clone https://github.com/llohse/libnpy.git \ | ||
&& cp libnpy/include/npy.hpp /usr/local/include \ | ||
&& rm -rf libnpy | ||
|
||
RUN cd /tmp \ | ||
&& git clone https://github.com/google/googletest.git \ | ||
&& cd googletest && cmake . && make install \ | ||
&& rm -rf googletest | ||
FROM ubuntu:22.04 | ||
RUN apt update && apt install -y --no-install-recommends \ | ||
libopenblas-dev liblapack-dev libscalapack-mpi-dev libelpa-dev libfftw3-dev libcereal-dev \ | ||
libxc-dev libgtest-dev libgmock-dev python3-numpy \ | ||
bc cmake git g++ make bc time sudo unzip vim wget | ||
|
||
ENV GIT_SSL_NO_VERIFY=true TERM=xterm-256color \ | ||
OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 OMPI_MCA_btl_vader_single_copy_mechanism=none | ||
|
||
RUN git clone https://github.com/llohse/libnpy.git && \ | ||
cp libnpy/include/npy.hpp /usr/local/include && \ | ||
rm -r libnpy | ||
|
||
RUN wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.9.1%2Bcpu.zip \ | ||
--no-check-certificate --quiet -O libtorch.zip && \ | ||
unzip -q libtorch.zip && rm libtorch.zip && \ | ||
cd libtorch && cp -r . /usr/local && \ | ||
cd .. && rm -r libtorch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
# BSSE | ||
|
||
[back to main page](../../README.md) | ||
|
||
An empty atom is defined in the `STRU` file when an element name contains the "empty" suffix, such as "H_empty" in the following example: calculating the molecular formation energy of H$_2$O by using the BSSE (Basis Set Superposition Errors) method. | ||
|
||
$$ | ||
\Delta E(\text{H}_2\text{O}) = E(\text{H}_2\text{O}) - E(\text{O}) - E(\text{H}^1) - E(\text{H}^2) | ||
$$ | ||
|
||
## $E(\text{H}_2\text{O})$ | ||
|
||
``` | ||
ntype 2 | ||
``` | ||
``` | ||
ATOMIC_SPECIES | ||
H 1.008 H_ONCV_PBE-1.0.upf | ||
O 15.9994 O_ONCV_PBE-1.0.upf | ||
NUMERICAL_ORBITAL | ||
H_gga_8au_60Ry_2s1p.orb | ||
O_gga_6au_60Ry_2s2p1d.orb | ||
LATTICE_CONSTANT | ||
1.889725989 | ||
LATTICE_VECTORS | ||
20 0 0 | ||
0 20 0 | ||
0 0 20 | ||
ATOMIC_POSITIONS | ||
Cartesian # Cartesian(Unit is LATTICE_CONSTANT) | ||
H | ||
0.5 | ||
2 | ||
0.9584 0.0000 0.0000 0 0 0 | ||
-0.2392 0.9281 0.0000 0 0 0 | ||
O | ||
0.5 | ||
1 | ||
0.0000 0.0000 0.0000 0 0 0 | ||
``` | ||
|
||
## $E(\text{O})$ | ||
|
||
``` | ||
ntype 2 | ||
``` | ||
``` | ||
ATOMIC_SPECIES | ||
H_empty 1.008 H_ONCV_PBE-1.0.upf | ||
O 15.9994 O_ONCV_PBE-1.0.upf | ||
NUMERICAL_ORBITAL | ||
H_gga_8au_60Ry_2s1p.orb | ||
O_gga_6au_60Ry_2s2p1d.orb | ||
LATTICE_CONSTANT | ||
1.889725989 | ||
LATTICE_VECTORS | ||
20 0 0 | ||
0 20 0 | ||
0 0 20 | ||
ATOMIC_POSITIONS | ||
Cartesian # Cartesian(Unit is LATTICE_CONSTANT) | ||
H_empty | ||
0.5 | ||
2 | ||
0.9584 0.0000 0.0000 0 0 0 | ||
-0.2392 0.9281 0.0000 0 0 0 | ||
O | ||
0.5 | ||
1 | ||
0.0000 0.0000 0.0000 0 0 0 | ||
``` | ||
|
||
## $E(\text{H}^1)$ | ||
|
||
``` | ||
ntype 3 | ||
``` | ||
``` | ||
ATOMIC_SPECIES | ||
H 1.008 H_ONCV_PBE-1.0.upf | ||
H_empty_2 1.008 H_ONCV_PBE-1.0.upf | ||
O_empty 15.9994 O_ONCV_PBE-1.0.upf | ||
NUMERICAL_ORBITAL | ||
H_gga_8au_60Ry_2s1p.orb | ||
H_gga_8au_60Ry_2s1p.orb | ||
O_gga_6au_60Ry_2s2p1d.orb | ||
LATTICE_CONSTANT | ||
1.889725989 | ||
LATTICE_VECTORS | ||
20 0 0 | ||
0 20 0 | ||
0 0 20 | ||
ATOMIC_POSITIONS | ||
Cartesian # Cartesian(Unit is LATTICE_CONSTANT) | ||
H | ||
0.5 | ||
1 | ||
0.9584 0.0000 0.0000 0 0 0 | ||
H_empty_2 | ||
0.5 | ||
1 | ||
-0.2392 0.9281 0.0000 0 0 0 | ||
O_empty | ||
0.5 | ||
1 | ||
0.0000 0.0000 0.0000 0 0 0 | ||
``` | ||
|
||
## $E(\text{H}^2)$ | ||
|
||
``` | ||
ntype 3 | ||
``` | ||
``` | ||
ATOMIC_SPECIES | ||
H_empty_1 1.008 H_ONCV_PBE-1.0.upf | ||
H 1.008 H_ONCV_PBE-1.0.upf | ||
O_empty 15.9994 O_ONCV_PBE-1.0.upf | ||
NUMERICAL_ORBITAL | ||
H_gga_8au_60Ry_2s1p.orb | ||
H_gga_8au_60Ry_2s1p.orb | ||
O_gga_6au_60Ry_2s2p1d.orb | ||
LATTICE_CONSTANT | ||
1.889725989 | ||
LATTICE_VECTORS | ||
20 0 0 | ||
0 20 0 | ||
0 0 20 | ||
ATOMIC_POSITIONS | ||
Cartesian # Cartesian(Unit is LATTICE_CONSTANT) | ||
H_empty_1 | ||
0.5 | ||
1 | ||
0.9584 0.0000 0.0000 0 0 0 | ||
H | ||
0.5 | ||
1 | ||
-0.2392 0.9281 0.0000 0 0 0 | ||
O_empty | ||
0.5 | ||
1 | ||
0.0000 0.0000 0.0000 0 0 0 | ||
``` | ||
|
||
[back to top](#BSSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.