File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,13 @@ void UnitCell::setup_cell(const std::string& fn, std::ofstream& log) {
328328 this ->omega = latvec.Det () * this ->lat0 * lat0 * lat0;
329329 if (this ->omega < 0 )
330330 {
331- ModuleBase::WARNING_QUIT (" setup_cell" , " The lattice vector is left-handed, please change it to right-handed." );
331+ std::cout << " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << std::endl;
332+ std::cout << " Warning: The lattice vector is left-handed; a right-handed vector is prefered." << std::endl;
333+ std::cout << " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << std::endl;
334+ GlobalV::ofs_warning << " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << std::endl;
335+ GlobalV::ofs_warning << " Warning: The lattice vector is left-handed; a right-handed vector is prefered." << std::endl;
336+ GlobalV::ofs_warning << " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" << std::endl;
337+ this ->omega = std::abs (this ->omega );
332338 }
333339 else if (this ->omega == 0 )
334340 {
You can’t perform that action at this time.
0 commit comments