Skip to content

Commit

Permalink
Refactor: remove ORB_table_beta & ORB_table_alpha and decouple center…
Browse files Browse the repository at this point in the history
…2_orb-orb & module_io from ORB_table_phi (deepmodeling#4485)

* remove ORB_table_beta & ORB_table_alpha and decouple center2_orb-orb with ORB_table_phi

* remove out-dated headers

* [pre-commit.ci lite] apply automatic fixes

* apply kmesh_times to spherical Bessel table initialization in ORB_table_phi

* [pre-commit.ci lite] apply automatic fixes

* decouple module_io from ORB_table_phi

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
jinzx10 and pre-commit-ci-lite[bot] authored Jun 27, 2024
1 parent dce250b commit aa20bb4
Show file tree
Hide file tree
Showing 31 changed files with 3,388 additions and 5,126 deletions.
2 changes: 0 additions & 2 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ OBJS_ORBITAL=ORB_atomic.o\
ORB_nonlocal.o\
ORB_nonlocal_lm.o\
ORB_read.o\
ORB_table_alpha.o\
ORB_table_beta.o\
ORB_table_phi.o\
parallel_2d.o\
parallel_orbitals.o\
Expand Down
2 changes: 0 additions & 2 deletions source/module_basis/module_ao/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ if(ENABLE_LCAO)
ORB_nonlocal.cpp
ORB_nonlocal_lm.cpp
ORB_read.cpp
ORB_table_alpha.cpp
ORB_table_beta.cpp
ORB_table_phi.cpp
parallel_2d.cpp
parallel_orbitals.cpp
Expand Down
6 changes: 0 additions & 6 deletions source/module_basis/module_ao/ORB_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,7 @@ void ORB_control::clear_after_ions(ORB_gen_tables& OGT,
{
ModuleBase::TITLE("ORB_control", "clear_after_ions");
OGT.MOT.Destroy_Table(orb);
OGT.tbeta.Destroy_Table_Beta(orb.get_ntype(), orb.Phi, nproj_);

// caoyu add 2021-03-18
if (deepks_setorb)
{
OGT.talpha.Destroy_Table_Alpha(orb);
}
return;
}

Expand Down
Loading

0 comments on commit aa20bb4

Please sign in to comment.