File tree Expand file tree Collapse file tree 11 files changed +25
-22
lines changed
601_NO_TDDFT_H2_len_gauss_dire
601_NO_TDDFT_H2_len_gauss
601_NO_TDDFT_H2_len_heavi
601_NO_TDDFT_H2_len_trape
601_NO_TDDFT_H2_len_trigo
601_NO_TDDFT_graphene_kpoint Expand file tree Collapse file tree 11 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ void ESolver_KS_LCAO_TDDFT::cal_edm_tddft()
4848 ->get_DM ()
4949 ->EDMK .resize (kv.get_nks ());
5050 for (int ik = 0 ; ik < kv.get_nks (); ++ik) {
51+
52+ p_hamilt->updateHk (ik);
53+
5154 std::complex <double >* tmp_dmk
5255 = dynamic_cast <elecstate::ElecStateLCAO<std::complex <double >>*>(this ->pelec )->get_DM ()->get_DMK_pointer (ik);
5356
@@ -146,11 +149,11 @@ void ESolver_KS_LCAO_TDDFT::cal_edm_tddft()
146149 &nlocal,
147150 &nlocal,
148151 &one_float,
149- tmp_dmk ,
152+ Htmp ,
150153 &one_int,
151154 &one_int,
152155 this ->pv .desc ,
153- Htmp ,
156+ Sinv ,
154157 &one_int,
155158 &one_int,
156159 this ->pv .desc ,
@@ -160,7 +163,7 @@ void ESolver_KS_LCAO_TDDFT::cal_edm_tddft()
160163 &one_int,
161164 this ->pv .desc );
162165
163- pzgemm_ (&N_char ,
166+ pzgemm_ (&T_char ,
164167 &N_char,
165168 &nlocal,
166169 &nlocal,
@@ -170,7 +173,7 @@ void ESolver_KS_LCAO_TDDFT::cal_edm_tddft()
170173 &one_int,
171174 &one_int,
172175 this ->pv .desc ,
173- Sinv ,
176+ tmp_dmk ,
174177 &one_int,
175178 &one_int,
176179 this ->pv .desc ,
@@ -201,16 +204,16 @@ void ESolver_KS_LCAO_TDDFT::cal_edm_tddft()
201204 this ->pv .desc );
202205
203206 pzgemm_ (&N_char,
204- &N_char ,
207+ &T_char ,
205208 &nlocal,
206209 &nlocal,
207210 &nlocal,
208211 &one_float,
209- tmp3 ,
212+ tmp_dmk ,
210213 &one_int,
211214 &one_int,
212215 this ->pv .desc ,
213- tmp_dmk ,
216+ tmp3 ,
214217 &one_int,
215218 &one_int,
216219 this ->pv .desc ,
Original file line number Diff line number Diff line change 11etotref -18.05466171990316
22etotperatomref -9.0273308600
3- totalforceref 44.887962
4- totalstressref 79.547659
3+ totalforceref 44.85505600
4+ totalstressref 79.48569300
55totaltimeref 1.51
Original file line number Diff line number Diff line change 11etotref -30.45477750879012
22etotperatomref -15.2273887544
3- totalforceref 0.574814
3+ totalforceref 0.57576800
44totalstressref 4.287440
55totaltimeref 1.57
Original file line number Diff line number Diff line change 11etotref -30.45466274119030
22etotperatomref -15.2273313706
3- totalforceref 0.573436
3+ totalforceref 0.57439400
44totalstressref 4.285714
55totaltimeref 1.55
Original file line number Diff line number Diff line change 11etotref -22.97718184915547
22etotperatomref -11.4885909246
3- totalforceref 0.564908
3+ totalforceref 0.56587600
44totalstressref 76.073961
55totaltimeref 1.56
Original file line number Diff line number Diff line change 11etotref 20.38731422853930
22etotperatomref 10.1936571143
3- totalforceref 0.738256
3+ totalforceref 0.73949000
44totalstressref 489.377111
55totaltimeref 1.56
Original file line number Diff line number Diff line change 11etotref -30.89965242483882
22etotperatomref -15.4498262124
3- totalforceref 0.574662
4- totalstressref 1.034216
3+ totalforceref 0.57561800
4+ totalstressref 1.03619000
55totaltimeref 1.44
Original file line number Diff line number Diff line change 11etotref -30.90912142263002
22etotperatomref -15.4545607113
3- totalforceref 0.574662
4- totalstressref 1.108904
3+ totalforceref 0.57561800
4+ totalstressref 1.11089700
55totaltimeref 1.43
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ md_dt 0.05
3232init_vel 1
3333ocp 1
3434ocp_set 1*0.5 1*0.5 3*0 1*0.5 1*0.5 3*0
35- td_edm 0
35+ td_edm 1
Original file line number Diff line number Diff line change 11etotref -18.05466171990316
22etotperatomref -9.0273308600
3- totalforceref 44.887962
4- totalstressref 79.547659
3+ totalforceref 43.10812600
4+ totalstressref 76.35413900
55totaltimeref 1.53
You can’t perform that action at this time.
0 commit comments