Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ rules. Read the complete governance document before making or reviewing changes:
`docs/advanced/`, `toolchain/`, `Dockerfile.gnu`, `Dockerfile.intel`, and
`Dockerfile.cuda`.

## File Move / Split Checklist

When moving, splitting, or deleting a `.cpp`/`.h`, update **all** build surfaces:

1. `source/Makefile.Objects` (legacy Makefile object lists)
2. All C++ `CMakeLists.txt`
3. `python/pyabacus/src/*/CMakeLists.txt` — pyabacus has independent hardcoded source lists that do not track the main CMake build

When splitting a function into a new `.cpp`, if its callers span LCAO and PW, put it in an unconditionally-built OBJECT library, not inside `if(ENABLE_LCAO)`.

## Build And Test Entry Points

- Prefer the repository CMake/CTest flow already used by CI. For focused local
Expand Down
1 change: 1 addition & 0 deletions python/pyabacus/src/ModuleNAO/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ list(APPEND _naos
${NAO_PATH}/radial_collection.cpp
${NAO_PATH}/radial_set.cpp
${NAO_PATH}/real_gaunt_table.cpp
${NAO_PATH}/smoothgen.cpp
${NAO_PATH}/sphbes_radials.cpp
${NAO_PATH}/two_center_bundle.cpp
${NAO_PATH}/two_center_integrator.cpp
Expand Down
1 change: 1 addition & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ target_link_libraries(
elecstate
module_pwdft
module_proj
nao_smoothgen
module_ofdft
module_stodft
module_dfpt
Expand Down
3 changes: 1 addition & 2 deletions source/Makefile.Objects
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ OBJS_BASE=assoc_laguerre.o\
complexmatrix.o\
clebsch_gordan_coeff.o\
element_basis_index.o\
export.o\
inverse_matrix.o\
gather_math_lib_info.o\
global_file.o\
Expand Down Expand Up @@ -557,7 +556,6 @@ OBJS_ORBITAL=orb_atomic.o\
two_center_bundle.o\
two_center_integrator.o\
two_center_table.o\
projgen.o\

OBJS_PSI=psi.o\

Expand Down Expand Up @@ -992,6 +990,7 @@ OBJS_SRCPW=h_ewald_pw.o\
onsite_proj_tools_force.o\
onsite_proj_tools_stress.o\
onsite_proj_print.o\
smoothgen.o\
vsep_pw.o

OBJS_VDW=vdw.o\
Expand Down
2 changes: 0 additions & 2 deletions source/source_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ add_library(
complexarray.cpp
complexmatrix.cpp
element_basis_index.cpp
export.cpp
inverse_matrix.cpp
gather_math_lib_info.cpp
global_file.cpp
Expand Down Expand Up @@ -61,7 +60,6 @@ add_library(
sph_bessel_tf.cpp
cubic_spline.cpp
parallel_2d.cpp
projgen.cpp
module_out/binstream.cpp
module_out/filename.cpp
module_out/sparse_matrix.cpp
Expand Down
2 changes: 0 additions & 2 deletions source/source_base/complexmatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "matrix.h"

#ifdef _MCD_CHECK
#endif
namespace ModuleBase
{
class ComplexMatrix
Expand Down
33 changes: 0 additions & 33 deletions source/source_base/export.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions source/source_base/export.h

This file was deleted.

64 changes: 0 additions & 64 deletions source/source_base/main.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions source/source_base/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

// Peize Lin update 2018-07-29

#ifdef _MCD_CHECK
#endif

#include <ostream>
#include<cassert>

Expand Down
4 changes: 0 additions & 4 deletions source/source_base/matrix3.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef MatriX3_H
#define MatriX3_H

#ifdef _MCD_CHECK
#include "mcd.h"
#endif

#include "matrix.h"
#include "vector3.h"

Expand Down
6 changes: 0 additions & 6 deletions source/source_base/matrix_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// DATE : 2018-07-31
//==========================================================

#ifndef MATRIX_WRAPPER_TIANHE2

#ifndef MATRIX_WRAPPER_H
#define MATRIX_WRAPPER_H

Expand Down Expand Up @@ -86,7 +84,3 @@ inline Matrix_Wrapper& Matrix_Wrapper::operator=( Matrix_Wrapper&&m )
}

#endif

#else
#include "matrix_wrapper_tianhe2.h"
#endif
55 changes: 0 additions & 55 deletions source/source_base/matrix_wrapper_tianhe2.h

This file was deleted.

Loading
Loading