Skip to content

Commit 038364e

Browse files
committed
delete ucell referenc in update_pos_tau
1 parent 795bbad commit 038364e

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

source/module_cell/update_cell.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ void setup_cell_after_vc(UnitCell& ucell, std::ofstream& log) {
346346
return;
347347
}
348348

349-
void update_pos_tau(UnitCell& ucell,
350-
const Lattice& lat,
349+
void update_pos_tau(const Lattice& lat,
351350
const double* pos,
352351
const int ntype,
353352
const int nat,

source/module_cell/update_cell.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@ namespace unitcell
2929
/**
3030
* update the position and tau of the atoms
3131
*
32-
* temprarily use refernce to ucell,it will be change after the
33-
* bcast_atoms_tau has been implemented
34-
*
35-
* @param atoms: the atoms to be updated [out]
3632
* @param lat: the lattice of the atoms [in]
3733
* @param pos: the position of the atoms [in]
3834
* @param ntype: the number of types of the atoms [in]
3935
* @param nat: the number of atoms [in]
36+
* @param atoms: the atoms to be updated [out]
4037
*/
41-
void update_pos_tau(UnitCell& ucell,
42-
const Lattice& lat,
38+
void update_pos_tau(const Lattice& lat,
4339
const double* pos,
4440
const int ntype,
4541
const int nat,

source/module_relax/relax_old/bfgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ void BFGS::UpdatePos(UnitCell& ucell)
334334
}
335335
std::cout<<std::endl;
336336
int k=0;
337-
unitcell::update_pos_tau(ucell,ucell.lat,a,ucell.ntype,ucell.nat,ucell.atoms);
337+
unitcell::update_pos_tau(ucell.lat,a,ucell.ntype,ucell.nat,ucell.atoms);
338338
/*double move_ion[3*size];
339339
ModuleBase::zeros(move_ion, size*3);
340340

source/module_relax/relax_old/ions_move_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void Ions_Move_Basic::move_atoms(UnitCell &ucell, double *move, double *pos)
105105
pos[i] += move[i];
106106
}
107107
}
108-
unitcell::update_pos_tau(ucell,ucell.lat,pos,ucell.ntype,ucell.nat,ucell.atoms);
108+
unitcell::update_pos_tau(ucell.lat,pos,ucell.ntype,ucell.nat,ucell.atoms);
109109

110110
//--------------------------------------------
111111
// Print out the structure file.

tests/integrate/Autotest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# ABACUS executable path
4-
abacus=abacus
4+
abacus=/home/liutao/github/abacus-develop/build/abacus
55
# number of MPI processes
66
np=4
77
nt=$OMP_NUM_THREADS # number of OpenMP threads, default is $OMP_NUM_THREADS

tests/integrate/CASES_CPU.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
101_PW_15_f_pseudopots
21
101_PW_15_lowz
32
101_PW_15_pseudopots
43
101_PW_15_pseudopots_LDA

0 commit comments

Comments
 (0)