Skip to content

Commit d53da82

Browse files
committed
update cell
1 parent 386c798 commit d53da82

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

source/source_cell/update_cell.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,11 @@ void periodic_boundary_adjustment(Atom* atoms,
487487
// mohan update 2011-03-21
488488
for (int ik = 0; ik < 3; ik++)
489489
{
490-
// important update: mohan update 2025-07-14, change 'if' to 'while'
491-
// so I guess the following warning will not show up anymore, which
492-
// I am not sure is correct or not. However, I prefer the current
493-
// implementation
494-
while (atom->taud[ia][ik] < 0)
490+
if (atom->taud[ia][ik] < 0)
495491
{
496492
atom->taud[ia][ik] += 1.0;
497493
}
498-
while (atom->taud[ia][ik] >= 1.0)
494+
if (atom->taud[ia][ik] >= 1.0)
499495
{
500496
atom->taud[ia][ik] -= 1.0;
501497
}

tests/02_NAO_Gamma/009_NO_GO_CS_CR/result.ref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ etotref -202.4208617343214485
22
etotperatomref -101.2104308672
33
totalforceref 0.000000
44
totalstressref 625.031700
5-
totaltimeref 1.81
5+
totaltimeref 1.83

0 commit comments

Comments
 (0)