File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
source/module_elecstate/potentials Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ void H_TDDFT_pw::cal_fixed_v(double* vl_pseudo)
128128
129129 if (PARAM.inp .td_vext_dire .size () != 1 )
130130 {
131+ ModuleBase::WARNING (" H_TDDFT_pw::cal_fixed_v" ,
132+ " Multiple electric fields detected. This feature may have potential issues and is not "
133+ " recommended for use!" );
134+ }
135+ if (PARAM.inp .td_vext_dire .size () > 2 )
136+ {
137+ // To avoid breaking the integration test 601_NO_TDDFT_H2_len_hhg, a maximum of 2 electric fields are allowed
131138 ModuleBase::WARNING_QUIT (" H_TDDFT_pw::cal_fixed_v" ,
132139 " For the sake of program stability, the feature of applying multiple electric fields "
133140 " simultaneously has been temporarily disabled. Thank you for your understanding!" );
You can’t perform that action at this time.
0 commit comments