Skip to content

Commit 01aeefe

Browse files
authored
default and force set symmetry=0 with efield (#4209)
1 parent 425feeb commit 01aeefe

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ These variables are used to control general system parameters.
461461
- 0:
462462
- if *[calculation](#calculation)==md/nscf/get_pchg/get_wf/get_S* or *[gamma_only](#gamma_only)==True*;
463463
- If (*[dft_fuctional](#dft_functional)==hse/hf/pbe0/scan0/opt_orb* or *[rpa](#rpa)==True*). Currently *symmetry==1* is not supported in EXX (exact exchange) calculation.
464+
- If *[efield_flag](#efield_flag)==1*
464465
- 1: else
465466

466467
### symmetry_prec

source/module_io/input.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3381,6 +3381,11 @@ void Input::Default_2(void) // jiyy add 2019-08-04
33813381
}
33823382
}
33833383
}
3384+
3385+
if (efield_flag)
3386+
{
3387+
symmetry = "0";
3388+
}
33843389
}
33853390
#ifdef __MPI
33863391
void Input::Bcast()

source/module_io/input_conv.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ void Input_Conv::Convert(void)
507507
elecstate::Efield::efield_pos_dec = INPUT.efield_pos_dec;
508508
elecstate::Efield::efield_amp = INPUT.efield_amp;
509509

510+
// efield does not support symmetry=1
511+
if (INPUT.efield_flag && INPUT.symmetry == "1")
512+
ModuleSymmetry::Symmetry::symm_flag = 0;
513+
510514
//----------------------------------------------------------
511515
// Yu Liu add 2022-09-13
512516
//----------------------------------------------------------

0 commit comments

Comments
 (0)