Skip to content

Commit

Permalink
fix bug (#4933)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-006 committed Aug 9, 2024
1 parent e365ce5 commit 24e7ba6
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ void Gint::gint_kernel_vlocal_meta(Gint_inout* inout) {
const double dv = ucell.omega / this->ncxyz;
const double delta_r = this->gridt->dr_uniform;

if (!GlobalV::GAMMA_ONLY_LOCAL) {
if (!pvpR_alloc_flag) {
ModuleBase::WARNING_QUIT("Gint_interface::cal_gint",
"pvpR has not been allocated yet!");
} else {
ModuleBase::GlobalFunc::ZEROS(this->pvpR_reduced[inout->ispin], nnrg);
}
}

#pragma omp parallel
{
// define HContainer here to reference.
Expand Down

0 comments on commit 24e7ba6

Please sign in to comment.