File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -413,8 +413,21 @@ void Input_Conv::Convert()
413413
414414 if (GlobalC::exx_info.info_global .cal_exx && PARAM.inp .basis_type == " pw" )
415415 {
416- ModuleBase::WARNING (" Input_Conv" , " EXX PW works only with symmetry=-1" );
417- ModuleSymmetry::Symmetry::symm_flag = -1 ;
416+ if (ModuleSymmetry::Symmetry::symm_flag != -1 )
417+ {
418+ ModuleBase::WARNING (" Input_Conv" , " EXX PW works only with symmetry=-1" );
419+ ModuleSymmetry::Symmetry::symm_flag = -1 ;
420+ }
421+
422+ if (PARAM.inp .nspin != 1 )
423+ {
424+ ModuleBase::WARNING_QUIT (" Input_Conv" , " EXX PW works only with nspin=1" );
425+ }
426+
427+ if (GlobalV::KPAR != 1 )
428+ {
429+ ModuleBase::WARNING_QUIT (" Input_Conv" , " EXX PW doesn't support K-point parallelism" );
430+ }
418431 }
419432
420433 // ----------------------------------------------------------
You can’t perform that action at this time.
0 commit comments