Skip to content

Commit cf36c6f

Browse files
committed
update the cal_psedudo.cpp
1 parent f084d42 commit cf36c6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/module_hamilt_general/module_surchem/cal_pseudo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ void surchem::gauss_charge(const UnitCell& cell,
88
complex<double>* N,
99
Structure_Factor* sf)
1010
{
11-
sf->setup_structure_factor(&GlobalC::ucell, rho_basis); // call strucFac(ntype,ngmc)
11+
UnitCell cell_tmp = cell;
12+
sf->setup_structure_factor(&cell_tmp, rho_basis); // call strucFac(ntype,ngmc)
1213
for (int it = 0; it < cell.ntype; it++)
1314
{
1415
double RCS = GetAtom.atom_RCS[cell.atoms[it].ncpp.psd];

0 commit comments

Comments
 (0)