Skip to content

Commit 76d1336

Browse files
committed
fix a merge bug
1 parent cd3bc55 commit 76d1336

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/module_cell/module_neighbor/sltk_grid_driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Grid_Driver::~Grid_Driver()
2525
void Grid_Driver::Find_atom(const UnitCell& ucell,
2626
const int ntype,
2727
const int nnumber,
28-
AdjacentAtomInfo* adjs)
28+
AdjacentAtomInfo* adjs) const
2929
{
3030
ModuleBase::timer::tick("Grid_Driver", "Find_atom");
3131
// std::cout << "lenght in Find atom = " << atomlink[offset].fatom.getAdjacentSet()->getLength() << std::endl;
@@ -58,7 +58,7 @@ void Grid_Driver::Find_atom(const UnitCell& ucell,
5858
const ModuleBase::Vector3<double>& cartesian_posi,
5959
const int& ntype,
6060
const int& nnumber,
61-
AdjacentAtomInfo* adjs)
61+
AdjacentAtomInfo* adjs) const
6262
{
6363
this->Find_atom(ucell, ntype, nnumber, adjs);
6464
}

source/module_cell/module_neighbor/sltk_grid_driver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ class Grid_Driver : public Grid
6868
void Find_atom(const UnitCell& ucell,
6969
const int ntype,
7070
const int nnumber,
71-
AdjacentAtomInfo* adjs = nullptr);
71+
AdjacentAtomInfo* adjs = nullptr) const;
7272

7373
// cartesian_posi and ucell is deprecated 20241204 zhanghaochong
7474
// this interface is deprecated, please use Find_atom above
7575
void Find_atom(const UnitCell& ucell,
7676
const ModuleBase::Vector3<double>& cartesian_posi,
7777
const int& ntype,
7878
const int& nnumber,
79-
AdjacentAtomInfo* adjs = nullptr);
79+
AdjacentAtomInfo* adjs = nullptr) const;
8080
//==========================================================
8181
// EXPLAIN : The adjacent information for the input
8282
// cartesian_pos

0 commit comments

Comments
 (0)