Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a110fc5
feat(xc): add libvdwxc-backed rVV10 adapter
Oct 13, 2026
a8ab61b
fix(build-info): report libvdwxc in Makefile builds
Oct 13, 2026
52d9da6
fix(xc): avoid libvdwxc header macro collision
Oct 13, 2026
48bc03f
test(xc): cover nonlocal potential derivative
Oct 13, 2026
e609791
docs(xc): state external validation gate clearly
Oct 13, 2026
3b58915
build(tests): register adapter after its dependencies
Oct 13, 2026
4ad8c37
build(tests): register after device target
Oct 13, 2026
e476398
docs(xc): make serial libvdwxc test command reproducible
Oct 13, 2026
67e6c66
docs(xc): add rVV10 citation guidance
Oct 13, 2026
f3d41ad
refactor(xc): make adapter validation explicit
Oct 13, 2026
32e12de
fix(xc): reject unsupported rVV10 density grids and spin
Oct 14, 2026
e65e07c
fix(xc): preserve cell orientation in libvdwxc adapter
Oct 14, 2026
3286e20
Merge latest develop and keep generated INPUT docs untracked
Oct 14, 2026
c23f000
refactor(xc): simplify libvdwxc adapter after review
Oct 14, 2026
9da9d84
fix(xc): prohibit copying owned libvdwxc handles
Oct 14, 2026
c3dedfb
test(xc): verify additive nonlocal host bookkeeping
Oct 14, 2026
95528a1
docs(xc): pin validated libvdwxc FFT-boundary fix
Oct 14, 2026
be61717
Merge develop and preserve rVV10 input parameters
Oct 15, 2026
1b09868
fix(io): report the first unsupported rVV10 input setting
Oct 17, 2026
00ae9bb
refactor(xc): keep the libvdwxc C header out of the adapter interface
Oct 17, 2026
a6c3ed4
docs(xc): trim the rVV10 test notes and drop the duplicate CI step
Oct 17, 2026
916a35e
Merge develop 8e20175 into rvv10-latest-clean
Oct 25, 2026
9828e9b
refactor(xc): select the nonlocal XC component from Input_para and fi…
Oct 25, 2026
76e9c1c
test(xc): drop the Python build-report test and register the adapter …
Oct 25, 2026
815deae
style(xc): name tolerances, reuse constants.h and format the new files
Oct 25, 2026
0df2a42
refactor(xc): shorten the adapter file names and split its evaluation
Oct 26, 2026
a682b56
style(xc): format the new hunks with the pre-commit clang-format and …
Oct 26, 2026
256d216
refactor(xc): select rVV10 through dft_functional and add it in XC_Fu…
Oct 27, 2026
a1b108a
refactor(xc): select rVV10 as vdw_method rvv10 and use libvdwxc's dis…
Oct 27, 2026
7e9425c
refactor(xc): keep the rVV10 hooks in their owning modules
Oct 27, 2026
b378fb2
build(xc): stop for MKL or KML with an MPI libvdwxc
Oct 27, 2026
7cf5c53
Merge branch 'develop' into rvv10-latest-clean
CleverPhysician Nov 2, 2026
4aa75ab
Merge branch 'develop' into rvv10-latest-clean
Nov 4, 2026
af97b46
perf(xc): time the libvdwxc evaluation of the rVV10 adapter
Nov 3, 2026
340fb83
refactor(xc): simplify the rVV10 adapter without changing results
Nov 3, 2026
619918e
test(xc): cover the nspin=4 layouts and the big-cell grid of rVV10; p…
Nov 3, 2026
57be2d3
perf(xc): reuse the libxc density gradient in the rVV10 adapter
Nov 3, 2026
353d5d6
perf(xc): thread the element-wise loops of the rVV10 adapter
Nov 3, 2026
0dafee6
fix(xc): hand the rVV10 gradient over as a vector, so that empty proc…
Nov 3, 2026
3d14912
test(xc): integration cases for vdw_method rvv10 in PW and LCAO
Nov 3, 2026
c5f4041
refactor(xc): polish the rVV10 adapter and its tests after review
Nov 3, 2026
4ba375e
test(xc): a PW libxc case for rVV10 and a lighter GaAs case
Nov 3, 2026
6256069
docs(xc): state the rVV10 memory per grid point
Nov 3, 2026
909371a
docs(xc): wording after proofreading the rVV10 changes
Nov 3, 2026
dfa39b1
refactor(xc): give the rVV10 workspace its own files and an explicit …
Nov 4, 2026
bb27eb4
docs(xc): basis set superposition error of LCAO binding energies with…
Nov 4, 2026
03786dd
fix(xc): ask libvdwxc for the grid slab of each process
Nov 7, 2026
2ddf235
refactor(xc): keep the libvdwxc switch in the rVV10 adapter; name the…
Nov 11, 2026
2a733a6
build(xc): libvdwxc no longer requires Libxc; say what libvdwxc is for
Nov 13, 2026
5a3eb84
test(xc): move the rVV10 unit tests to unittests/ directories
Nov 13, 2026
d8d9491
Merge branch 'develop' into rvv10-latest-clean
Nov 13, 2026
d28073b
test(io): link stru_frame_io into the rVV10 INPUT test
Nov 13, 2026
6913b98
refactor(xc): drop the optional libvdwxc grid query
Nov 14, 2026
a538c8c
fix(xc): release the libvdwxc workspace after the last XC evaluation
Nov 14, 2026
04e913b
test(xc): register the native-PBE rVV10 case without Libxc; review fo…
Nov 14, 2026
d6d48c3
Merge branch 'develop' into rvv10-latest-clean
Nov 23, 2026
07ec655
refactor(xc): evaluate rVV10 with a libvdwxc object per XC evaluation
Nov 23, 2026
63b95bb
refactor(io): one fallback for the default of vdw_rvv10_b; state it o…
Nov 23, 2026
a0b7790
perf(xc): skip dE/dn in the rVV10 stress evaluation
Nov 24, 2026
74a55cd
Merge branch 'develop' into rvv10-latest-clean
Nov 24, 2026
46392d9
Merge branch 'develop' into rvv10-latest-clean
Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ option(ENABLE_ABACUS_LIBM "Build libmath from source for old systems" OFF)
option(ENABLE_FLOAT_FFTW "Enable using single-precision FFTW library." OFF)

option(ENABLE_LIBXC "Enable using the LibXC package" OFF)
option(ENABLE_LIBVDWXC "Enable using the libvdwxc package" OFF)
option(ENABLE_DFTD4 "Enable DFT-D4 dispersion correction" OFF)
option(ENABLE_PLUMED "Enable using the PLUMED enhanced-sampling library" OFF)
option(ENABLE_JSON "Enable JSON output" OFF)
Expand Down Expand Up @@ -240,6 +241,10 @@ if(ENABLE_DFTD4 OR ENABLE_PEXSI)
enable_language(C)
enable_language(Fortran)
endif()
# The libvdwxc package configuration looks up MPI for C when libvdwxc was built with MPI.
if(ENABLE_LIBVDWXC)
enable_language(C)
endif()

macro(set_if_higher VARIABLE VALUE)
if(${VARIABLE} LESS ${VALUE})
Expand Down Expand Up @@ -605,6 +610,24 @@ if(ENABLE_LIBXC)
endif()
endif()

if(ENABLE_LIBVDWXC)
find_package(libvdwxc CONFIG REQUIRED)
# An MPI build calls vdwxc_init_mpi, which only an MPI-enabled libvdwxc provides.
if(ENABLE_MPI AND NOT VDWXC_ENABLE_MPI)
message(
FATAL_ERROR
"ENABLE_LIBVDWXC with ENABLE_MPI requires libvdwxc configured with -DVDWXC_ENABLE_MPI=ON"
)
endif()
# vdwxc_init_mpi creates FFTW-MPI plans, which the FFTW interface of MKL or KML cannot execute.
if(ENABLE_MPI AND (MKL_FOUND OR USE_KML))
message(
FATAL_ERROR
"ENABLE_LIBVDWXC with ENABLE_MPI requires ABACUS built with FFTW3, not with the FFTW interface of MKL or KML"
)
endif()
endif()

if(DEFINED DeePMD_DIR)
find_package(DeePMD REQUIRED)
endif()
Expand Down
7 changes: 7 additions & 0 deletions cmake/CollectBuildInfoVars.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ else()
set(ABACUS_DFTD4_VERSION "no")
endif()

if(ENABLE_LIBVDWXC)
set(ABACUS_LIBVDWXC_VERSION "yes (v${libvdwxc_VERSION})")
else()
set(ABACUS_LIBVDWXC_VERSION "no")
endif()

# Accelerators
if(USE_CUDA AND CUDAToolkit_VERSION)
set(ABACUS_CUDA_VERSION "yes (v${CUDAToolkit_VERSION})")
Expand Down Expand Up @@ -480,6 +486,7 @@ message(" Features : Libxc = ${ABACUS_LIBXC_VERSION}")
message(" LibRI = ${ABACUS_LIBRI_VERSION}")
message(" LibRI GPU = ${ENABLE_LIBRI_GPU}")
message(" DFT-D4 = ${ABACUS_DFTD4_VERSION}")
message(" libvdwxc = ${ABACUS_LIBVDWXC_VERSION}")
message(" JSON = ${ABACUS_JSON_VERSION}")
message(" PEXSI = ${ABACUS_PEXSI_VERSION}")
message(" CNPY = ${ABACUS_CNPY_VERSION}")
Expand Down
10 changes: 10 additions & 0 deletions docs/CITATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ The following references are required to be cited when using ABACUS. Specificall
Eike Caldeweyher, Jan-Michael Mewes, Sebastian Ehlert, and Stefan Grimme. "Extension and evaluation of the D4 London-dispersion model for periodic systems." Physical Chemistry Chemical Physics 22, 8499-8512 (2020). DOI: 10.1039/D0CP00502A.

Nikolay V. Tkachenko, Linus B. Dittmer, Rebecca Tomann, and Martin Head-Gordon. "Smooth D4S model." The Journal of Physical Chemistry Letters 15, 10629-10637 (2024). DOI: 10.1021/acs.jpclett.4c02653.

- **If the rVV10 nonlocal correlation (`vdw_method rvv10`) is used:**

O. A. Vydrov and T. Van Voorhis. "Nonlocal van der Waals density functional: The simpler the better." The Journal of Chemical Physics 133, 244103 (2010). DOI: 10.1063/1.3521275.

R. Sabatini, T. Gorni, and S. de Gironcoli. "Nonlocal van der Waals density functional made simple and efficient." Physical Review B 87, 041108(R) (2013). DOI: 10.1103/PhysRevB.87.041108.

A. H. Larsen, M. Kuisma, J. Löfgren, Y. Pouillon, P. Erhart, and P. Hyldgaard. "libvdwxc: a library for exchange-correlation functionals in the vdW-DF family." Modelling and Simulation in Materials Science and Engineering 25, 065004 (2017). DOI: 10.1088/1361-651X/aa7320.

For SCAN+rVV10 and r2SCAN+rVV10, also cite the parametrization: H. Peng, Z.-H. Yang, J. P. Perdew, and J. Sun. "Versatile van der Waals density functional based on a meta-generalized gradient approximation." Physical Review X 6, 041005 (2016). DOI: 10.1103/PhysRevX.6.041005; J. Ning, M. Kothakonda, J. W. Furness, A. D. Kaplan, S. Ehlert, J. G. Brandenburg, J. P. Perdew, and J. Sun. "Workhorse minimally empirical dispersion-corrected density functional with tests for weakly bound systems: r2SCAN+rVV10." Physical Review B 106, 075422 (2022). DOI: 10.1103/PhysRevB.106.075422.
19 changes: 19 additions & 0 deletions docs/advanced/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,25 @@ vdw_d4_model d4 # or d4s for the smooth D4S model

If `vdw_d4_xc` is set to `default`, ABACUS will infer the functional name from `dft_functional` or pseudopotential metadata and pass it to the DFT-D4 library. The `vdw_d4_model` keyword selects the dispersion model inside the DFT-D4 library; the default is `d4`, while `d4s` enables the smooth D4S model.

## Build with libvdwxc support

`vdw_method rvv10` evaluates the rVV10 nonlocal correlation with the external [libvdwxc](https://gitlab.com/libvdwxc/libvdwxc) library. Until a tagged libvdwxc release contains the rVV10 interface, build the branch of [libvdwxc merge request !32](https://gitlab.com/libvdwxc/libvdwxc/-/merge_requests/32) with libvdwxc's CMake build, which installs the package that ABACUS looks up, and against the FFTW that ABACUS uses. For an MPI build of ABACUS, configure libvdwxc with MPI, which needs FFTW with its MPI library:

```bash
cmake -S libvdwxc -B build-libvdwxc -DBUILD_SHARED_LIBS=ON -DVDWXC_ENABLE_MPI=ON -DCMAKE_INSTALL_PREFIX=/path/to/libvdwxc
cmake --build build-libvdwxc && cmake --install build-libvdwxc
```

Then pass `-DENABLE_LIBVDWXC=ON` to CMake for ABACUS and add `/path/to/libvdwxc` to `CMAKE_PREFIX_PATH`. rVV10 works with the built-in functionals; functionals such as rPW86 (`GGA_X_RPW86+GGA_C_PBE`) or SCAN also need `-DENABLE_LIBXC=ON`. Each k-point pool evaluates the nonlocal convolution with libvdwxc's distributed interface; an evaluation needs about 300 bytes per grid point, shared by the processes of the pool and released afterwards. libvdwxc's MPI build plans its FFTs with FFTW-MPI, so an MPI build of ABACUS with libvdwxc must use FFTW3 rather than the FFTW interface of MKL or KML; CMake stops otherwise. The legacy Makefile does not build this feature.

In the input file:

```text
dft_functional GGA_X_RPW86+GGA_C_PBE
vdw_method rvv10
vdw_rvv10_b 6.3 # optional; the default follows dft_functional for rPW86-PBE, SCAN and r2SCAN
```

## Build with JSON support

ABACUS uses [nlohmann-json](https://github.com/nlohmann/json) for optional JSON output. To build ABACUS with JSON support, pass `-DENABLE_JSON=ON` to CMake.
Expand Down
1 change: 1 addition & 0 deletions docs/advanced/scf/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ To use VdW-correction, users need to supply value to the `vdw_method` keyword in
- d2: DFT-D2 method
- d3_0: DFT-D3(0) method
- d3_bj: DFT-D3(BJ) method
- rvv10: rVV10 nonlocal correlation (requires [libvdwxc](../install.md#build-with-libvdwxc-support)). Unlike the DFT-D methods, it depends on the electron density and is added self-consistently to the exchange-correlation energy and potential; its parameter `vdw_rvv10_b` depends on `dft_functional`.

Furthermore, ABACUS also provides a [list of keywords](../input_files/input-main.md#vdw-correction) to control relevant parmeters used in calculating the VdW correction, such as the scale factor (s6) term. Recommended values of such parameters can be found on the [webpage](https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dft-d3). The default values of the parameters in ABACUS are set to be the recommended values for PBE.

Expand Down
3 changes: 2 additions & 1 deletion docs/quick_start/easy_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,14 @@ Here, 'build' is the path for building ABACUS; and '-D' is used for setting up s
- `LIBCOMM_DIR`: (Optional) Path to LibComm when `ENABLE_LIBRI=ON`.

```{important}
For some dependencies built with CMake, such as Libxc, dftd4, cereal, and nlohmann-json, you'll have to add their prefix paths to the environment variable `CMAKE_PREFIX_PATH` so that CMake can correctly find and use their CMake configuration files. A non-general variable such as `PKG_DIR` is discouraged for these packages.
For some dependencies built with CMake, such as Libxc, dftd4, libvdwxc, cereal, and nlohmann-json, you'll have to add their prefix paths to the environment variable `CMAKE_PREFIX_PATH` so that CMake can correctly find and use their CMake configuration files. A non-general variable such as `PKG_DIR` is discouraged for these packages.
```

- Components: The values of these variables should be 'ON', '1' or 'OFF', '0'. The default values are given below.
- `ENABLE_LCAO=ON`: Enable LCAO calculation. If SCALAPACK, ELPA or CEREAL is absent and only require plane-wave calculations, the feature of calculating LCAO basis can be turned off.
- `ENABLE_LIBXC=OFF`: [Enable Libxc](../advanced/install.md#add-libxc-support) to suppport variety of functionals.
- `ENABLE_LIBRI=OFF`: [Enable LibRI](../advanced/install.md#add-libri-support) and its LibComm dependency for hybrid-functional calculations. Set `LIBRI_DIR` and `LIBCOMM_DIR` to use manually installed libraries.
- `ENABLE_LIBVDWXC=OFF`: [Enable libvdwxc](../advanced/install.md#build-with-libvdwxc-support) for the rVV10 nonlocal correlation (`vdw_method rvv10`).
- `ENABLE_JSON=OFF`: [Enable JSON output](../advanced/install.md#build-with-json-support) through nlohmann-json.
- `ENABLE_OPENMP=ON`: Enable OpenMP support. Building ABACUS without OpenMP is not fully tested yet.
- `BUILD_TESTING=OFF`: [Build unit tests](../advanced/install.md#build-unit-tests).
Expand Down
1 change: 1 addition & 0 deletions generate_build_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ sed \
-e "s#@ABACUS_OPENMP_VERSION@#$OPENMP_VERSION#g" \
-e "s#@ABACUS_MKL_SUPPORT@#$MKL_SUPPORT#g" \
-e "s#@ABACUS_LIBXC_VERSION@#$LIBXC_VERSION#g" \
-e "s#@ABACUS_LIBVDWXC_VERSION@#no#g" \
-e "s#@ABACUS_FFTW_VERSION@#$FFTW3_VERSION#g" \
-e "s#@ABACUS_CUDA_VERSION@#$CUDA_VERSION#g" \
-e "s#@ABACUS_ROCM_VERSION@#$ROCM_VERSION#g" \
Expand Down
2 changes: 2 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ set(_abacus_feature_definitions
$<$<BOOL:${ENABLE_LIBXC_CUDA}>:ABACUS_LIBXC_CUDA>
$<$<BOOL:${_libxc_requires_host_flag}>:ABACUS_LIBXC_REQUIRES_HOST_FLAG>
$<$<BOOL:${ENABLE_DFTD4}>:__DFTD4>
$<$<BOOL:${ENABLE_LIBVDWXC}>:__LIBVDWXC>
$<$<BOOL:${ENABLE_NEP}>:__NEP>
$<$<BOOL:${MATH_INFO}>:GATHER_INFO>)

Expand Down Expand Up @@ -416,6 +417,7 @@ foreach(
ELPA::ELPA
Libxc::xc
dftd4::dftd4
libvdwxc::vdwxc
DeePMD::deepmd_c
DeePMD::deepmd_cc
nep::nep_cpu
Expand Down
4 changes: 4 additions & 0 deletions source/source_base/parallel_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ void gatherv_data(const std::complex<float>* sendbuf, int sendcount, std::comple
{
MPI_Allgatherv(sendbuf, sendcount, MPI_COMPLEX, recvbuf, recvcounts, displs, MPI_COMPLEX, comm);
}
void alltoallv_data(const double* sendbuf, const int* sendcounts, const int* sdispls, double* recvbuf, const int* recvcounts, const int* rdispls, const MPI_Comm& comm)
{
MPI_Alltoallv(sendbuf, sendcounts, sdispls, MPI_DOUBLE, recvbuf, recvcounts, rdispls, MPI_DOUBLE, comm);
}

#ifndef __CUDA_MPI
template <typename T>
Expand Down
1 change: 1 addition & 0 deletions source/source_base/parallel_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void gatherv_data(const double* sendbuf, int sendcount, double* recvbuf, const i
void gatherv_data(const std::complex<double>* sendbuf, int sendcount, std::complex<double>* recvbuf, const int* recvcounts, const int* displs, MPI_Comm& comm);
void gatherv_data(const float* sendbuf, int sendcount, float* recvbuf, const int* recvcounts, const int* displs, MPI_Comm& comm);
void gatherv_data(const std::complex<float>* sendbuf, int sendcount, std::complex<float>* recvbuf, const int* recvcounts, const int* displs, MPI_Comm& comm);
void alltoallv_data(const double* sendbuf, const int* sendcounts, const int* sdispls, double* recvbuf, const int* recvcounts, const int* rdispls, const MPI_Comm& comm);

#if defined(__NCCL_PARALLEL_DEVICE)
void nccl_bcast_data(double* object, const int& n, MPI_Comm& comm, int root = 0);
Expand Down
14 changes: 14 additions & 0 deletions source/source_base/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ AddTest(
LIBS parameter base device
SOURCES test_filename.cpp
)

# alltoallv_data is an MPI wrapper, so this target keeps __MPI.
addtest(
TARGET MODULE_BASE_test_parallel_device
LIBS MPI::MPI_CXX base device parameter
SOURCES test_parallel_device.cpp ../test/mpi_test_main.cpp
KEEP_FEATURE_DEFINITIONS __MPI)

add_test(
NAME MODULE_BASE_test_parallel_device_np4
COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} 4 ${MPIEXEC_PREFLAGS}
$<TARGET_FILE:MODULE_BASE_test_parallel_device> ${MPIEXEC_POSTFLAGS})
set_tests_properties(MODULE_BASE_test_parallel_device_np4
PROPERTIES PROCESSORS 4 TIMEOUT 120)
45 changes: 45 additions & 0 deletions source/source_base/unittests/test_parallel_device.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// parallel_device.cpp: the all-to-all exchange used by the rVV10 adapter to move grid planes between distributions.
#include "source_base/parallel_device.h"

#include "source_base/parallel_cell.h"

#include "gtest/gtest.h"
#include <vector>

TEST(ParallelDevice, AlltoallvExchangesUnevenBlocks)
{
const ModuleBase::CommunicationDomain domain = ModuleBase::world_comm_domain();
const MPI_Comm communicator = domain.communicator();
const int rank = domain.rank();
const int size = domain.size();
// rank r sends (r + p) % 2 + 1 copies of 100 r + p to rank p
std::vector<int> send_counts(size);
std::vector<int> send_offsets(size);
std::vector<int> recv_counts(size);
std::vector<int> recv_offsets(size);
std::vector<double> sent;
int received_total = 0;
for (int peer = 0; peer < size; ++peer)
{
const double value = 100.0 * rank + peer;
send_counts[peer] = (rank + peer) % 2 + 1;
send_offsets[peer] = static_cast<int>(sent.size());
sent.insert(sent.end(), send_counts[peer], value);
recv_counts[peer] = send_counts[peer];
recv_offsets[peer] = received_total;
received_total += recv_counts[peer];
}
std::vector<double> received(received_total);
Parallel_Common::alltoallv_data(
sent.data(), send_counts.data(), send_offsets.data(), received.data(), recv_counts.data(), recv_offsets.data(),
communicator);
for (int peer = 0; peer < size; ++peer)
{
const double expected = 100.0 * peer + rank;
for (int index = 0; index < recv_counts[peer]; ++index)
{
const int position = recv_offsets[peer] + index;
EXPECT_EQ(received[position], expected);
}
}
}
3 changes: 3 additions & 0 deletions source/source_esolver/esolver_fp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ void ESolver_FP::before_all_runners(BaseCell &basecell, const Input_para &inp)
xc_parameters.exx_erfc_alpha = inp.exx_erfc_alpha;
xc_parameters.xc_exch_ext = inp.xc_exch_ext;
xc_parameters.xc_corr_ext = inp.xc_corr_ext;
xc_parameters.rvv10 = inp.vdw_method == "rvv10";
xc_parameters.rvv10_b = inp.vdw_rvv10_b;
xc_parameters.rvv10_c = inp.vdw_rvv10_c;
XC_Functional::set_runtime_parameters(xc_parameters);

ModuleBase::TITLE("ESolver_FP", "before_all_runners");
Expand Down
Loading
Loading