Skip to content

Add LAPACK banded LU/solve interface declarations (single + double precision)#31

Merged
ivan-pi merged 3 commits into
mainfrom
copilot/add-banded-solver-interface
May 8, 2026
Merged

Add LAPACK banded LU/solve interface declarations (single + double precision)#31
ivan-pi merged 3 commits into
mainfrom
copilot/add-banded-solver-interface

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

  • Review new PR comments and identify required declaration-order updates in src/stiff3_linalg.f90
  • Run baseline project validation to confirm current state before edits
  • Reorder interface dummy declarations so integer size arguments appear before arrays that depend on them
  • Run targeted validation for the modified module
  • Run final automated review/security validation
  • Reply to new review comments with commit hash

Comment thread src/stiff3_linalg.f90
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot The LAPACK routines are not guaranteed pure, we can remove those attribtues.

Instead of placing one parameter on each line, I want to fold dummy arguments that share the same type and intent on the same line, as far as that is possible. This keeps the code shorter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in d3a4d09: removed pure from the LAPACK interface procedures and folded dummy declarations by shared type/intent where possible in src/stiff3_linalg.f90.

Copilot finished work on behalf of ivan-pi May 8, 2026 20:59
Copilot AI requested a review from ivan-pi May 8, 2026 20:59
Copy link
Copy Markdown
Owner

@ivan-pi ivan-pi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot This is not bad, but the integer array sizes which are also used in declarations of other arguments, must come before those arguments.

Comment thread src/stiff3_linalg.f90 Outdated
Comment on lines +31 to +33
real(sp), intent(inout) :: a(lda,*)
integer, intent(out) :: ipiv(*)
integer, intent(out) :: info
integer, intent(in) :: m
integer, intent(in) :: n
integer, intent(in) :: lda
integer, intent(out) :: ipiv(*), info
integer, intent(in) :: m, n, lda
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot the integer sizes: m, n, lda, should be the second statement within the interface, before the argument a

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 19ff182: m, n, lda are now declared immediately after import and before a(lda,*) in sgetrf/dgetrf. UI screenshot: N/A (no UI changes).

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 8, 2026

@copilot This is not bad, but the integer array sizes which are also used in declarations of other arguments, must come before those arguments.

Updated in 19ff182: integer size dummies are now declared before any dependent array dummies throughout the LAPACK interfaces in src/stiff3_linalg.f90. UI screenshot: N/A (no UI changes).

Copilot finished work on behalf of ivan-pi May 8, 2026 21:33
Copilot AI requested a review from ivan-pi May 8, 2026 21:33
@ivan-pi ivan-pi marked this pull request as ready for review May 8, 2026 21:36
@ivan-pi ivan-pi merged commit 70130e8 into main May 8, 2026
2 of 4 checks passed
Copilot AI added a commit that referenced this pull request May 8, 2026
…ecision) (#31)

* Add LAPACK banded solver interface blocks in linalg module

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/d57763e0-309f-425d-981d-e9b5c4917ba3

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Apply review feedback on LAPACK interface declarations

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/fd2af19c-bad3-4516-b368-62491b6b28e6

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Reorder LAPACK interface size declarations before dependent arrays

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/4627e9eb-b7df-491d-9fb3-5202f9bbbcf3

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>
ivan-pi added a commit that referenced this pull request May 8, 2026
… table (#29)

* chore: bump versions to 0.2.0 and add releases table to README

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/7b30eba2-f07d-45ed-a5f7-8da6cb98b014

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* docs: add upcoming 0.2 release line to releases table

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/7b30eba2-f07d-45ed-a5f7-8da6cb98b014

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* docs: enrich release table with highlights and releases link

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/92cb19b3-dbfc-4e65-9419-c8f448b14202

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* docs: apply suggested 0.2 release highlight wording

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/9b4b2cd0-2173-4432-9d28-ac79d50ad670

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Add LAPACK banded LU/solve interface declarations (single + double precision) (#31)

* Add LAPACK banded solver interface blocks in linalg module

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/d57763e0-309f-425d-981d-e9b5c4917ba3

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Apply review feedback on LAPACK interface declarations

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/fd2af19c-bad3-4516-b368-62491b6b28e6

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Reorder LAPACK interface size declarations before dependent arrays

Agent-Logs-Url: https://github.com/ivan-pi/stiff3/sessions/4627e9eb-b7df-491d-9fb3-5202f9bbbcf3

Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

* Revise README for clarity

Updated the README to clarify the library's purpose.
Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ivan-pi <21085643+ivan-pi@users.noreply.github.com>
Co-authored-by: Ivan Pribec <ivan.pribec@gmail.com>
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