|
6 | 6 | #include "source_lcao/module_dftu/dftu.h" |
7 | 7 | #include "source_pw/module_pwdft/VSep_in_pw.h" |
8 | 8 |
|
| 9 | +template <typename T, typename Device> |
9 | 10 | void setup_pot(const int istep, |
10 | 11 | UnitCell& ucell, // unitcell |
11 | 12 | const K_Vectors &kv, // kpoints |
@@ -118,3 +119,36 @@ void setup_pot(const int istep, |
118 | 119 |
|
119 | 120 | return; |
120 | 121 | } |
| 122 | + |
| 123 | +template void setup_pot<std::complex<float>, base_device::DEVICE_CPU>( |
| 124 | + const int istep, // ionic step |
| 125 | + UnitCell& ucell, // unitcell |
| 126 | + const K_Vectors &kv, // kpoints |
| 127 | + Structure_Factor &sf, // structure factors |
| 128 | + elecstate::ElecState *pelec, // pointer of electrons |
| 129 | + const Parallel_Grid ¶_grid, // parallel of FFT grids |
| 130 | + const Charge &chr, // charge density |
| 131 | + pseudopot_cell_vl &locpp, // local pseudopotentials |
| 132 | + pseudopot_cell_vnl &ppcell, // non-local pseudopotentials |
| 133 | + VSep* vsep_cell, // U-1/2 method |
| 134 | + psi::Psi<std::complex<float>, base_devcie::DEVICE_CPU>* kspw_psi, // electronic wave functions |
| 135 | + const ModulePW::PW_Basis_K *pw_wfc, // pw for wfc |
| 136 | + const ModulePW::PW_Basis *pw_rhod, // pw for rhod |
| 137 | + const Input_para& inp); // input parameters |
| 138 | + |
| 139 | + |
| 140 | +template void setup_pot<std::complex<double>, base_device::DEVICE_CPU>( |
| 141 | + const int istep, // ionic step |
| 142 | + UnitCell& ucell, // unitcell |
| 143 | + const K_Vectors &kv, // kpoints |
| 144 | + Structure_Factor &sf, // structure factors |
| 145 | + elecstate::ElecState *pelec, // pointer of electrons |
| 146 | + const Parallel_Grid ¶_grid, // parallel of FFT grids |
| 147 | + const Charge &chr, // charge density |
| 148 | + pseudopot_cell_vl &locpp, // local pseudopotentials |
| 149 | + pseudopot_cell_vnl &ppcell, // non-local pseudopotentials |
| 150 | + VSep* vsep_cell, // U-1/2 method |
| 151 | + psi::Psi<std::complex<double>, base_devcie::DEVICE_CPU>* kspw_psi, // electronic wave functions |
| 152 | + const ModulePW::PW_Basis_K *pw_wfc, // pw for wfc |
| 153 | + const ModulePW::PW_Basis *pw_rhod, // pw for rhod |
| 154 | + const Input_para& inp); // input parameters |
0 commit comments