Skip to content

Commit 1347003

Browse files
committed
Fix: save mass
1 parent ef46dd1 commit 1347003

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/module_cell/read_atoms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ bool UnitCell::read_atom_positions(std::ifstream &ifpos, std::ofstream &ofs_runn
517517
atoms[it].m_loc_.resize(na, ModuleBase::Vector3<double>(0,0,0));
518518
atoms[it].lambda.resize(na, ModuleBase::Vector3<double>(0,0,0));
519519
atoms[it].constrain.resize(na, ModuleBase::Vector3<int>(0,0,0));
520+
atoms[it].mass = this->atom_mass[it]; //mohan add 2011-11-07
520521
for (int ia = 0;ia < na; ia++)
521522
{
522523
// modify the reading of frozen ions and velocities -- Yuanbo Li 2021/8/20

0 commit comments

Comments
 (0)