Skip to content

Commit

Permalink
default and force set symmetry=0 with efield (#4209)
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 authored May 23, 2024
1 parent 425feeb commit 01aeefe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/advanced/input_files/input-main.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ These variables are used to control general system parameters.
- 0:
- if *[calculation](#calculation)==md/nscf/get_pchg/get_wf/get_S* or *[gamma_only](#gamma_only)==True*;
- 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.
- If *[efield_flag](#efield_flag)==1*
- 1: else

### symmetry_prec
Expand Down
5 changes: 5 additions & 0 deletions source/module_io/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3381,6 +3381,11 @@ void Input::Default_2(void) // jiyy add 2019-08-04
}
}
}

if (efield_flag)
{
symmetry = "0";
}
}
#ifdef __MPI
void Input::Bcast()
Expand Down
4 changes: 4 additions & 0 deletions source/module_io/input_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ void Input_Conv::Convert(void)
elecstate::Efield::efield_pos_dec = INPUT.efield_pos_dec;
elecstate::Efield::efield_amp = INPUT.efield_amp;

// efield does not support symmetry=1
if (INPUT.efield_flag && INPUT.symmetry == "1")
ModuleSymmetry::Symmetry::symm_flag = 0;

//----------------------------------------------------------
// Yu Liu add 2022-09-13
//----------------------------------------------------------
Expand Down

0 comments on commit 01aeefe

Please sign in to comment.