Skip to content

Commit f814048

Browse files
authored
DFTU: Use ScalapackConnector instead of direct math library calls (#7196)
1 parent 577ae5f commit f814048

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/source_lcao/module_dftu/dftu_hamilt.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ void Plus_U::cal_eff_pot_mat_complex(const int ik,
5050
}
5151

5252
#ifdef __MPI
53-
pztranc_(&PARAM.globalv.nlocal, &PARAM.globalv.nlocal,
54-
&one,
55-
&VU[0], &one_int, &one_int, this->paraV->desc,
56-
&one,
57-
eff_pot, &one_int, &one_int, this->paraV->desc);
53+
ScalapackConnector::tranu(PARAM.globalv.nlocal, PARAM.globalv.nlocal,
54+
one,
55+
&VU[0], one_int, one_int, this->paraV->desc,
56+
one,
57+
eff_pot, one_int, one_int, this->paraV->desc);
5858
#endif
5959

6060
ModuleBase::timer::end("Plus_U", "cal_eff_pot_c");

0 commit comments

Comments
 (0)