88#include < cmath>
99#include < stdexcept>
1010
11+ MDCell::MDCell () = default;
1112MDCell::~MDCell () = default ;
1213MDCell::MDCell (MDCell&&) = default;
1314MDCell& MDCell::operator =(MDCell&&) = default ;
@@ -176,10 +177,10 @@ void MDCell::initialize_from_owned_atoms_(double cutoff, double skin)
176177#endif
177178
178179
179- MDCell::MDCell (UnitCell& ucell,
180- double cutoff,
181- double skin,
182- const ModuleBase::CommunicationDomain& communication_domain)
180+ void MDCell::initialize_from_unitcell (UnitCell& ucell,
181+ double cutoff,
182+ double skin,
183+ const ModuleBase::CommunicationDomain& communication_domain)
183184{
184185#ifdef __MPI
185186 initialize_from_ucell_ (ucell, communication_domain.communicator (), cutoff, skin);
@@ -189,18 +190,18 @@ MDCell::MDCell(UnitCell& ucell,
189190#endif
190191}
191192
192- MDCell::MDCell (const ModuleBase::Matrix3& latvec,
193- const ModuleBase::Matrix3& gt,
194- double lat0,
195- double omega,
196- std::int64_t nat,
197- const std::vector<LocalAtom>& owned_atoms,
198- const std::vector<std::string>& type_labels,
199- const std::vector<double >& type_masses,
200- const std::vector<std::int64_t >& type_atom_counts,
201- double cutoff,
202- double skin,
203- const ModuleBase::CommunicationDomain& communication_domain)
193+ void MDCell::initialize_from_owned_atoms (const ModuleBase::Matrix3& latvec,
194+ const ModuleBase::Matrix3& gt,
195+ double lat0,
196+ double omega,
197+ std::int64_t nat,
198+ const std::vector<LocalAtom>& owned_atoms,
199+ const std::vector<std::string>& type_labels,
200+ const std::vector<double >& type_masses,
201+ const std::vector<std::int64_t >& type_atom_counts,
202+ double cutoff,
203+ double skin,
204+ const ModuleBase::CommunicationDomain& communication_domain)
204205{
205206 latvec_ = latvec;
206207 gt_ = gt;
0 commit comments