Skip to content

Commit

Permalink
fix a segfalt
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Nov 29, 2023
1 parent dee73a8 commit 59df6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/module_cell/module_symmetry/symmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ for (int g_index = 0; g_index < group_index; g_index++)
void Symmetry::set_atom_map(const Atom* atoms)
{
ModuleBase::TITLE("Symmetry", "set_atom_map");
if (this->isym_rotiat_.size() > 0) return;
if (this->isym_rotiat_.size() == this->nrotk) return;
this->isym_rotiat_.resize(this->nrotk);
for (int i = 0; i < this->nrotk; ++i)this->isym_rotiat_[i].resize(this->nat, -1);

Expand Down

0 comments on commit 59df6a1

Please sign in to comment.