Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip to determine time-reversal part for non-overlapped operations #195

Merged
merged 3 commits into from
Oct 30, 2022

Conversation

lan496
Copy link
Member

@lan496 lan496 commented Oct 30, 2022

Fixes: #194

Time-reversal parts are searched after determining linear and
translation parts of symmetry operations by get_dataset. It
is impossible in theory but we rarely fail to overlap atoms
possibly due to too high symprec. In that case, skip the
symmetry operation.

@atztogo In some edge cases with high symprec, a symmetry operation in DataContainer->exact_structure->Symmetry does not follow symprec (on the other hand, the not-refined operation follows symprec).
In the current implementation for MSG search, permutations of sites are computed from DataContainer->exact_structure->symmetry. Then, the segmentation fault in #194 was caused.
This PR just skips such a suspicious operation and does not change space-group search codes.
So, I will merge this if there are no concerns.

Not addressed in this PR, but I think adding permutation information in DataContainer will be better (e.g. int *DataContainer->exact_structure->permutations).

Time-reversal parts are searched after determining linear and
translation parts of symmetry operations by `get_dataset`. It
is impossible in theory but we rarely fail to overlap atoms
possibly due to too high symprec. In that case, skip the
symmetry operation.
@codecov-commenter
Copy link

Codecov Report

Base: 85.12% // Head: 85.12% // No change to project coverage 👍

Coverage data is based on head (4dd11a6) compared to base (9458171).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #195   +/-   ##
========================================
  Coverage    85.12%   85.12%           
========================================
  Files           16       16           
  Lines         1318     1318           
========================================
  Hits          1122     1122           
  Misses         196      196           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@atztogo
Copy link
Collaborator

atztogo commented Oct 30, 2022

Thanks @lan496. Looks good to me.

@lan496 lan496 merged commit 9218fa1 into spglib:develop Oct 30, 2022
@lan496 lan496 deleted the issue-194-mag-symprec branch October 30, 2022 10:33
@LecrisUT LecrisUT added the bug label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault in v2.0.1 for a specific cell input
4 participants