Skip to content

Commit

Permalink
add a condition
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 authored Oct 24, 2023
1 parent 6a10ce9 commit 7807a97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/module_cell/module_symmetry/symmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,11 @@ void Symmetry::analy_sys(const UnitCell &ucell, std::ofstream &ofs_running)
{
if (invmap[isym] != -1)
{
this->gmatrix[nrotk_new] = this->gmatrix[isym];
this->gtrans[nrotk_new] = this->gtrans[isym];
if(nrotk_new < isym)
{
this->gmatrix[nrotk_new] = this->gmatrix[isym];
this->gtrans[nrotk_new] = this->gtrans[isym];
}
++nrotk_new;
}
}
Expand Down

0 comments on commit 7807a97

Please sign in to comment.