We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc881c commit 85bfdb1Copy full SHA for 85bfdb1
source/module_hamilt_general/module_surchem/cal_pseudo.cpp
@@ -8,8 +8,7 @@ void surchem::gauss_charge(const UnitCell& cell,
8
complex<double>* N,
9
Structure_Factor* sf)
10
{
11
- UnitCell* cell_tmp = const_cast<UnitCell*>(&cell);
12
- sf->setup_structure_factor(cell_tmp, rho_basis); // call strucFac(ntype,ngmc)
+ sf->setup_structure_factor(&cell, rho_basis); // call strucFac(ntype,ngmc)
13
for (int it = 0; it < cell.ntype; it++)
14
15
double RCS = GetAtom.atom_RCS[cell.atoms[it].ncpp.psd];
0 commit comments