Skip to content

Commit

Permalink
Fix: memory record for wrapper data (#3962)
Browse files Browse the repository at this point in the history
Co-authored-by: dyzheng <[email protected]>
  • Loading branch information
dyzheng and dyzheng authored Apr 12, 2024
1 parent fd4ee1f commit 00fcb53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/module_hamilt_lcao/module_hcontainer/hcontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ size_t HContainer<T>::get_memory_size() const
}
memory += this->tmp_atom_pairs.capacity() * sizeof(AtomPair<T>*);
memory += this->tmp_R_index.capacity() * sizeof(int);
if(this->allocated)
{
memory += this->get_nnr() * sizeof(T);
}
return memory;
}

Expand Down

0 comments on commit 00fcb53

Please sign in to comment.