Skip to content

fix(fortran): forward stabilized reciprocal mesh arguments - #652

Merged
atztogo merged 2 commits into
spglib:developfrom
rpinho:fix-fortran-stabilized-mesh
Nov 25, 2026
Merged

atztogo merged 2 commits into
spglib:developfrom
rpinho:fix-fortran-stabilized-mesh

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

A Fortran request for a 4×4×4 stabilized reciprocal mesh can segfault because its C binding passes a lattice argument that the C routine does not accept. The patch forwards through a C binding with the C argument list and preserves the existing Fortran call signature. The regression compares grid addresses and mappings with direct C calls for shifted and unshifted grids with time reversal enabled and disabled. The Python and native test suites pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.33%. Comparing base (d1cc572) to head (b5bc02f).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #652      +/-   ##
===========================================
+ Coverage    74.30%   74.33%   +0.03%     
===========================================
  Files           27       27              
  Lines         8025     8028       +3     
  Branches      1639     1643       +4     
===========================================
+ Hits          5963     5968       +5     
+ Misses        1590     1589       -1     
+ Partials       472      471       -1     
Flag Coverage Δ
c_api 69.55% <ø> (ø)
fortran_api 55.84% <100.00%> (+2.76%) ⬆️
python_api 67.65% <ø> (ø)
unit_tests 11.79% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@atztogo
atztogo merged commit 5e487fc into spglib:develop Nov 25, 2026
45 of 50 checks passed
@atztogo

atztogo commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

@rpinho Thank you. I resolved the conflict in ChangeLog.md and merged this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants