Skip to content

Commit

Permalink
fix bug. (#4932)
Browse files Browse the repository at this point in the history
  • Loading branch information
grysgreat authored Aug 9, 2024
1 parent 943ced3 commit 919b58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/module_hamilt_pw/hamilt_pwdft/kernels/stress_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ struct cal_stress_drhoc_aux_op<FPTYPE, base_device::DEVICE_CPU> {
const double omega,
int type) {
const double FOUR_PI = 4.0 * 3.14159265358979323846;
FPTYPE rhocg1 = 0;
// printf("%d,%d,%lf\n",ngg,mesh,omega);

#ifdef _OPENMP
Expand All @@ -365,6 +364,7 @@ struct cal_stress_drhoc_aux_op<FPTYPE, base_device::DEVICE_CPU> {
#endif
for(int igl = 0;igl< ngg;igl++)
{
FPTYPE rhocg1 = 0;
//FPTYPE *aux = new FPTYPE[mesh];
std::vector<FPTYPE> aux(mesh);
for( int ir = 0;ir< mesh; ir++)
Expand Down

0 comments on commit 919b58d

Please sign in to comment.