File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,8 @@ void Input_Conv::Convert(void)
463463 Exx_Abfs::Jle::tolerence = INPUT.exx_opt_orb_tolerence ;
464464
465465 // EXX does not support any symmetry analyse, force symmetry setting to -1
466- ModuleSymmetry::Symmetry::symm_flag = -1 ;
466+ if (INPUT.calculation != " nscf" )
467+ ModuleSymmetry::Symmetry::symm_flag = -1 ;
467468 }
468469#endif // __LCAO
469470#endif // __EXX
Original file line number Diff line number Diff line change @@ -303,9 +303,9 @@ bool K_Vectors::read_kpoints(const std::string &fn)
303303 else if (kword == " Line_Cartesian" )
304304 {
305305 // std::cout << " kword = " << kword << std::endl;
306- if (ModuleSymmetry::Symmetry::symm_flag)
306+ if (ModuleSymmetry::Symmetry::symm_flag == 1 )
307307 {
308- ModuleBase::WARNING (" K_Vectors::read_kpoints" ," Line mode of k-points is open, please set symmetry to 0." );
308+ ModuleBase::WARNING (" K_Vectors::read_kpoints" ," Line mode of k-points is open, please set symmetry to 0 or -1 ." );
309309 return 0 ;
310310 }
311311
@@ -380,9 +380,9 @@ bool K_Vectors::read_kpoints(const std::string &fn)
380380 else if (kword == " Line_Direct" || kword == " L" || kword == " Line" )
381381 {
382382 // std::cout << " kword = " << kword << std::endl;
383- if (ModuleSymmetry::Symmetry::symm_flag)
383+ if (ModuleSymmetry::Symmetry::symm_flag == 1 )
384384 {
385- ModuleBase::WARNING (" K_Vectors::read_kpoints" ," Line mode of k-points is open, please set symmetry to 0." );
385+ ModuleBase::WARNING (" K_Vectors::read_kpoints" ," Line mode of k-points is open, please set symmetry to 0 or -1 ." );
386386 return 0 ;
387387 }
388388
You can’t perform that action at this time.
0 commit comments