Skip to content

Commit b67b54b

Browse files
committed
Fix a CI/CD test issue
1 parent 1581d49 commit b67b54b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/module_elecstate/potentials/H_TDDFT_pw.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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!");

0 commit comments

Comments
 (0)