Skip to content

Commit de40f75

Browse files
committed
Merge branch 'develop' into new_lri_cv
2 parents 775bb75 + a97defc commit de40f75

File tree

543 files changed

+1392
-745
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

543 files changed

+1392
-745
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@
215215
- [of\_wt\_rho0](#of_wt_rho0)
216216
- [of\_hold\_rho0](#of_hold_rho0)
217217
- [of\_lkt\_a](#of_lkt_a)
218+
- [of\_xwm\_rho\_ref](#of_xwm_rho_ref)
219+
- [of\_xwm\_kappa](#of_xwm_kappa)
218220
- [of\_read\_kernel](#of_read_kernel)
219221
- [of\_kernel\_file](#of_kernel_file)
220222
- [of\_full\_pw](#of_full_pw)
@@ -2277,6 +2279,7 @@ Warning: this function is not robust enough for the current version. Please try
22772279
- **vw**: von Weizsäcker.
22782280
- **tf+**: TF $\rm{\lambda}$ vW, the parameter $\rm{\lambda}$ can be set by `of_vw_weight`.
22792281
- **lkt**: Luo-Karasiev-Trickey.
2282+
- **xwm**: Xu-Wang-Ma
22802283

22812284
Machine learning (ML) based functionals:
22822285
- **ml**: ML-based KEDF allows for greater flexibility, enabling users to set related ML model parameters themselves. see [ML-KEDF: machine learning based kinetic energy density functional for OFDFT](#ml-kedf-machine-learning-based-kinetic-energy-density-functional-for-ofdft).
@@ -2323,14 +2326,14 @@ Warning: this function is not robust enough for the current version. Please try
23232326
### of_tf_weight
23242327

23252328
- **Type**: Real
2326-
- **Availability**: OFDFT with `of_kinetic=tf, tf+, wt`
2329+
- **Availability**: OFDFT with `of_kinetic=tf, tf+, wt, xwm`
23272330
- **Description**: Weight of TF KEDF (kinetic energy density functional).
23282331
- **Default**: 1.0
23292332

23302333
### of_vw_weight
23312334

23322335
- **Type**: Real
2333-
- **Availability**: OFDFT with `of_kinetic=vw, tf+, wt, lkt`
2336+
- **Availability**: OFDFT with `of_kinetic=vw, tf+, wt, lkt, xwm`
23342337
- **Description**: Weight of vW KEDF (kinetic energy density functional).
23352338
- **Default**: 1.0
23362339

@@ -2372,6 +2375,20 @@ Warning: this function is not robust enough for the current version. Please try
23722375
- **Description**: Parameter a of LKT KEDF (kinetic energy density functional).
23732376
- **Default**: 1.3
23742377

2378+
### of_xwm_rho_ref
2379+
2380+
- **Type**: Real
2381+
- **Availability**: OFDFT with `of_kinetic=xwm`
2382+
- **Description**: Reference charge density for XWM kinetic energy functional. If set to 0, the program will use average charge density.
2383+
- **Default**: 0.0
2384+
2385+
### of_xwm_kappa
2386+
2387+
- **Type**: Real
2388+
- **Availability**: OFDFT with `of_kinetic=xwm`
2389+
- **Description**: Parameter $\kappa$ for XWM kinetic energy functional. See PHYSICAL REVIEW B 100, 205132 (2019) for optimal values.
2390+
- **Default**: 0.0
2391+
23752392
### of_read_kernel
23762393

23772394
- **Type**: Boolean

python/pyabacus/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ set(BASE_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/base")
7979
add_subdirectory(${ABACUS_SOURCE_DIR}/source_base ${BASE_BINARY_DIR})
8080
# add parameter
8181
set(PARAMETER_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/parameter")
82-
add_subdirectory(${ABACUS_SOURCE_DIR}/module_parameter ${PARAMETER_BINARY_DIR})
82+
add_subdirectory(${ABACUS_SOURCE_DIR}/source_io/module_parameter ${PARAMETER_BINARY_DIR})
8383
# add orb
8484
set(ORB_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/orb")
8585
add_subdirectory(${ABACUS_SOURCE_DIR}/source_basis/module_ao ${ORB_BINARY_DIR})

python/pyabacus/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ set(BASE_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/base")
144144
add_subdirectory(${ABACUS_SOURCE_DIR}/source_base ${BASE_BINARY_DIR})
145145
# Add parameter
146146
set(PARAMETER_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/parameter")
147-
add_subdirectory(${ABACUS_SOURCE_DIR}/module_parameter ${PARAMETER_BINARY_DIR})
147+
add_subdirectory(${ABACUS_SOURCE_DIR}/source_io/module_parameter ${PARAMETER_BINARY_DIR})
148148
# Add orb
149149
set(ORB_BINARY_DIR "${PROJECT_SOURCE_DIR}/build/orb")
150150
add_subdirectory(${ABACUS_SOURCE_DIR}/source_basis/module_ao ${ORB_BINARY_DIR})

source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_subdirectory(source_lcao/module_gint)
1515
add_subdirectory(source_io)
1616
add_subdirectory(source_relax)
1717
add_subdirectory(source_lcao/module_ri)
18-
add_subdirectory(module_parameter)
18+
add_subdirectory(source_io/module_parameter)
1919
add_subdirectory(module_lr)
2020

2121
# add by jghan

source/Makefile.Objects

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ VPATH=./src_global:\
5454
./source_pw/module_pwdft/module_exx_helper:\
5555
./source_pw/module_stodft/kernels:\
5656
./source_lcao/module_hcontainer:\
57-
./source_lcao/hamilt_lcaodft:\
57+
./source_lcao:\
5858
./source_lcao/module_rt:\
5959
./source_lcao/module_deepks:\
6060
./source_lcao/module_dftu:\
6161
./source_lcao/module_deltaspin:\
62-
./source_lcao/hamilt_lcaodft/operator_lcao:\
62+
./source_lcao/module_operator_lcao:\
6363
./source_lcao/module_gint:\
6464
./source_lcao/module_gint/temp_gint:\
6565
./source_relax:\
@@ -68,7 +68,7 @@ VPATH=./src_global:\
6868
./source_io/json_output:\
6969
./src_ri:\
7070
./source_lcao/module_ri:\
71-
./module_parameter:\
71+
./source_io/module_parameter:\
7272
./module_lr:\
7373
./module_lr/ao_to_mo_transformer:\
7474
./module_lr/dm_trans:\
@@ -345,6 +345,7 @@ OBJS_HAMILT=hamilt_pw.o\
345345
OBJS_HAMILT_OF=kedf_tf.o\
346346
kedf_vw.o\
347347
kedf_wt.o\
348+
kedf_xwm.o\
348349
kedf_lkt.o\
349350
kedf_manager.o\
350351

source/module_lr/dm_trans/dmr_complex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "source_estate/module_dm/density_matrix.h"
22
#include "source_base/timer.h"
3-
#include "module_parameter/parameter.h"
3+
#include "source_io/module_parameter/parameter.h"
44
#include "source_base/libm/libm.h"
55
namespace elecstate
66
{

source/module_lr/esolver_lrtd_lcao.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
#include "module_lr/hsolver_lrtd.hpp"
88
#include "module_lr/lr_spectrum.h"
99
#include <memory>
10-
#include "source_lcao/hamilt_lcaodft/hamilt_lcao.h"
10+
#include "source_lcao/hamilt_lcao.h"
1111
#include "source_io/read_wfc_nao.h"
1212
#include "source_io/cube_io.h"
1313
#include "source_io/print_info.h"
1414
#include "source_cell/module_neighbor/sltk_atom_arrange.h"
1515
#include "module_lr/utils/lr_util_print.h"
1616
#include "source_base/scalapack_connector.h"
17-
#include "module_parameter/parameter.h"
17+
#include "source_io/module_parameter/parameter.h"
1818
#include "module_lr/ri_benchmark/ri_benchmark.h"
1919
#include "module_lr/operator_casida/operator_lr_diag.h" // for precondition
2020

source/module_lr/esolver_lrtd_lcao.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include "source_esolver/esolver_fp.h"
3-
#include "module_parameter/input_parameter.h"
3+
#include "source_io/module_parameter/input_parameter.h"
44
#include "source_cell/unitcell.h"
55
#include "source_hamilt/hamilt.h"
66
#include "source_estate/elecstate.h"

source/module_lr/hsolver_lrtd.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "module_parameter/parameter.h"
2+
#include "source_io/module_parameter/parameter.h"
33
#include "source_hsolver/diago_david.h"
44
#include "source_hsolver/diago_dav_subspace.h"
55
#include "source_hsolver/diago_cg.h"

source/module_lr/lr_spectrum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "lr_spectrum.h"
22
#include "module_lr/utils/lr_util.h"
3-
#include "module_parameter/parameter.h"
3+
#include "source_io/module_parameter/parameter.h"
44
#include "module_lr/dm_trans/dm_trans.h"
55
#include "source_base/parallel_reduce.h"
66
#include "module_lr/utils/lr_util.h"

0 commit comments

Comments
 (0)