Skip to content

Commit

Permalink
fix a bug about sdc when num—_atom*run_steps is too large
Browse files Browse the repository at this point in the history
  • Loading branch information
brucefan1983 committed Sep 19, 2022
1 parent 087c411 commit aa9cca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/measure/sdc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void SDC::postprocess(const char* input_dir)
CHECK(cudaDeviceSynchronize()); // needed for pre-Pascal GPU

// normalize by the number of atoms and number of time origins
const double vac_scaler = 1.0 / (num_atoms_ * num_time_origins_);
const double vac_scaler = 1.0 / ((double)num_atoms_ * (double)num_time_origins_);
for (int nc = 0; nc < num_correlation_steps_; nc++) {
vacx_[nc] *= vac_scaler;
vacy_[nc] *= vac_scaler;
Expand Down

0 comments on commit aa9cca4

Please sign in to comment.