Skip to content

Commit 301c118

Browse files
author
abacus_fixer
committed
refactor: shorten long filenames in source (phase 4)
Rename 20 files (26 chars → 12-20 chars), including 6 .cpp/.h pairs: - lattice_change_methods.{cpp,h} → lat_change_method.{cpp,h} - vec_mul_vec_complex_op.{cpp,h} → vec_mul_cx_op.{cpp,h} - psi_init_atomic_random.{cpp,h} → psi_init_atom_rand.{cpp,h} - cal_mlkedf_descriptors.{cpp,h} → cal_mlkedf_desc.{cpp,h} - gint_vl_metagga_nspin4.{cpp,h} → gint_vl_mgga_n4.{cpp,h} - symmetry_rotation_spin.{cpp,h} → symm_rot_spin.{cpp,h} - irreducible_sector_bvk.cpp → irred_sec_bvk.cpp - read_input_item_{system,output,deepks}.cpp → read_inp_{sys,out,deepks}.cpp - charge_mixing_residual.cpp → mix_resid.cpp - elecstate_energy_terms.cpp → estate_e_terms.cpp - pw_distributeg_method{1,2}.cpp → pw_distg_method{1,2}.cpp Update all #include references, CMakeLists.txt, Makefile.Objects, Makefile, header guards, and WARNING string literals. Function, class, and struct names preserved unchanged.
1 parent 1d72486 commit 301c118

43 files changed

Lines changed: 71 additions & 71 deletions

Some content is hidden

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

source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ list(APPEND device_srcs
565565
source_hamilt/module_xc/kernels/xc_functional_op.cpp
566566
source_pw/module_pwdft/kernels/cal_density_real_op.cpp
567567
source_pw/module_pwdft/kernels/mul_potential_op.cpp
568-
source_pw/module_pwdft/kernels/vec_mul_vec_complex_op.cpp
568+
source_pw/module_pwdft/kernels/vec_mul_cx_op.cpp
569569
source_pw/module_pwdft/kernels/exx_cal_energy_op.cpp)
570570

571571
if(USE_CUDA)

source/Makefile.Objects

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ OBJS_DEEPKS=LCAO_deepks.o\
232232

233233

234234
OBJS_ELECSTAT=elecstate.o\
235-
elecstate_energy_terms.o\
235+
estate_e_terms.o\
236236
elecstate_energy.o\
237237
elecstate_exx.o\
238238
elecstate_print.o\
@@ -299,7 +299,7 @@ OBJS_GINT=batch_biggrid.o\
299299
gint_interface.o\
300300
gint_rho.o\
301301
gint_tau.o\
302-
gint_vl_metagga_nspin4.o\
302+
gint_vl_mgga_n4.o\
303303
gint_vl_metagga.o\
304304
gint_vl_nspin4.o\
305305
gint_vl.o\
@@ -329,7 +329,7 @@ OBJS_HAMILT=hamilt_pw.o\
329329
op_pw_proj.o\
330330
radial_proj.o\
331331
exx_helper.o\
332-
vec_mul_vec_complex_op.o\
332+
vec_mul_cx_op.o\
333333
exx_cal_energy_op.o\
334334
cal_density_real_op.o\
335335
mul_potential_op.o\
@@ -459,7 +459,7 @@ OBJS_PSI_INITIALIZER=psi_initializer.o\
459459
psi_init_random.o\
460460
psi_init_file.o\
461461
psi_init_atomic.o\
462-
psi_init_atomic_random.o\
462+
psi_init_atom_rand.o\
463463
psi_init_nao.o\
464464
psi_init_nao_random.o\
465465

@@ -469,8 +469,8 @@ OBJS_PW=fft_bundle.o\
469469
pw_basis_k.o\
470470
pw_basis_sup.o\
471471
pw_distributeg.o\
472-
pw_distributeg_method1.o\
473-
pw_distributeg_method2.o\
472+
pw_distg_method1.o\
473+
pw_distg_method2.o\
474474
pw_distributer.o\
475475
pw_init.o\
476476
pw_transform.o\
@@ -488,7 +488,7 @@ OBJS_RELAXATION=relax_data.o\
488488
ions_move_sd.o\
489489
lattice_change_basic.o\
490490
lattice_change_cg.o\
491-
lattice_change_methods.o\
491+
lat_change_method.o\
492492
relax_nsync.o\
493493
relax_sync.o\
494494
ions_move_lbfgs.o\
@@ -598,19 +598,19 @@ OBJS_IO=module_parameter/input_conv.o\
598598
output_info.o\
599599
parse_args.o\
600600
module_parameter/read_input.o\
601-
module_parameter/read_input_item_system.o\
601+
module_parameter/read_inp_sys.o\
602602
module_parameter/read_inp_estruc.o\
603603
module_parameter/read_input_item_relax.o\
604604
module_parameter/read_input_item_md.o\
605605
module_parameter/read_input_item_ofdft.o\
606606
module_parameter/read_input_item_sdft.o\
607607
module_parameter/read_input_item_tddft.o\
608-
module_parameter/read_input_item_deepks.o\
608+
module_parameter/read_inp_deepks.o\
609609
module_parameter/read_input_item_model.o\
610610
module_parameter/read_inp_postproc.o\
611611
module_parameter/read_inp_exx_dftu.o\
612612
module_parameter/read_input_item_other.o\
613-
module_parameter/read_input_item_output.o\
613+
module_parameter/read_inp_out.o\
614614
module_parameter/read_set_globalv.o\
615615
orb_io.o\
616616
cal_pLpR.o\
@@ -726,7 +726,7 @@ OBJS_SRCPW=H_Ewald_pw.o\
726726
charge_extra.o\
727727
charge_mixing.o\
728728
charge_mixing_dmr.o\
729-
charge_mixing_residual.o\
729+
mix_resid.o\
730730
mix_precond.o\
731731
charge_mixing_rho.o\
732732
charge_mixing_uspp.o\

source/source_basis/module_pw/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ list(APPEND objects
2525
pw_basis_k.cpp
2626
pw_basis_sup.cpp
2727
pw_distributeg.cpp
28-
pw_distributeg_method1.cpp
29-
pw_distributeg_method2.cpp
28+
pw_distg_method1.cpp
29+
pw_distg_method2.cpp
3030
pw_distributer.cpp
3131
pw_init.cpp
3232
pw_transform.cpp

source/source_basis/module_pw/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ pw_distributer.o\
120120
pw_init.o\
121121
pw_transform.o\
122122
pw_distributeg.o\
123-
pw_distributeg_method1.o\
124-
pw_distributeg_method2.o\
123+
pw_distg_method1.o\
124+
pw_distg_method2.o\
125125
pw_basis_k.o\
126126
pw_basis_sup.o\
127127
pw_transform_k.o\

source/source_basis/module_pw/test_serial/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ add_library(
1515
../pw_basis_k.cpp
1616
../pw_basis_sup.cpp
1717
../pw_distributeg.cpp
18-
../pw_distributeg_method1.cpp
19-
../pw_distributeg_method2.cpp
18+
../pw_distg_method1.cpp
19+
../pw_distg_method2.cpp
2020
../pw_distributer.cpp
2121
../pw_init.cpp
2222
../pw_transform.cpp

source/source_cell/module_symmetry/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_library(
1212
symm_pricell.cpp
1313
symm_rho.cpp
1414
symmetry.cpp
15-
symmetry_rotation_spin.cpp
15+
symm_rot_spin.cpp
1616
)
1717

1818
if(ENABLE_COVERAGE)

source/source_cell/module_symmetry/symm_magnetic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "symmetry.h"
22
using namespace ModuleSymmetry;
33

4-
#include "symmetry_rotation_spin.h"
4+
#include "symm_rot_spin.h"
55
#include "source_base/global_variable.h"
66

77
#include <set>

source/source_cell/module_symmetry/symm_rot_spin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "symmetry_rotation_spin.h"
1+
#include "symm_rot_spin.h"
22

33
#include "source_base/constants.h"
44

source/source_cell/module_symmetry/symm_rot_spin.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef SYMMETRY_ROTATION_SPIN_H
2-
#define SYMMETRY_ROTATION_SPIN_H
1+
#ifndef SYMM_ROT_SPIN_H
2+
#define SYMM_ROT_SPIN_H
33

44
#include "source_base/matrix3.h"
55

@@ -76,4 +76,4 @@ void rotate_pauli_components(const ModuleBase::Matrix3& gmatc,
7676
} // namespace SpinRotation
7777
} // namespace ModuleSymmetry
7878

79-
#endif // SYMMETRY_ROTATION_SPIN_H
79+
#endif // SYMM_ROT_SPIN_H

source/source_cell/module_symmetry/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AddTest(
1515
AddTest(
1616
TARGET MODULE_CELL_SYMMETRY_rotation_spin
1717
LIBS parameter base ${math_libs} device
18-
SOURCES symmetry_rotation_spin_test.cpp ../symmetry_rotation_spin.cpp
18+
SOURCES symmetry_rotation_spin_test.cpp ../symm_rot_spin.cpp
1919
)
2020
AddTest(
2121
TARGET MODULE_CELL_SYMMETRY_rho_soc

0 commit comments

Comments
 (0)