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

Enable Fortran interface for 32-bit sunindextype #447

Merged
merged 87 commits into from
Jun 12, 2024

Conversation

balos1
Copy link
Member

@balos1 balos1 commented Mar 26, 2024

This tweaks the SWIG generation, and CMake build system to support the Fortran interfaces for 32-bit or 64-bit sunindextype as suggested in https://github.com/LLNL/sundials-private/issues/60. Most of the files 'changed' are just the moved or new SWIG generated files. Unfortunately this does make the repository larger in terms of files and bytes.

@balos1 balos1 added the Fortran label Mar 26, 2024
@balos1 balos1 added this to the SUNDIALS Next milestone Mar 26, 2024
@balos1 balos1 changed the base branch from main to develop March 26, 2024 22:58
Copy link
Collaborator

@drreynolds drreynolds left a comment

Choose a reason for hiding this comment

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

I still need to test this out, but for now I have only a few comments/questions.

swig/Makefile Show resolved Hide resolved
swig/README.md Show resolved Hide resolved
swig/sunmatrix/fsunmatrix_sparse_mod.i Outdated Show resolved Hide resolved
drreynolds
drreynolds previously approved these changes May 24, 2024
@balos1
Copy link
Member Author

balos1 commented May 24, 2024

@gardner48 I think this is ready to merge, if you approve.

CHANGELOG.md Outdated Show resolved Hide resolved
find_package(KLU CONFIG)
find_package(SuiteSparse_config CONFIG)
Copy link
Member

@gardner48 gardner48 May 25, 2024

Choose a reason for hiding this comment

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

@mmuetzel The issue seems to be with using -DKLU_DIR=<suite_sparse_install_path>/lib64/cmake/KLU alone to provide the config file location. Using either -DKLU_ROOT=<suite_sparse_install_path> or -DCMAKE_PREFIX_PATH=<suite_sparse_install_path> works without the above additions.

@balos1 are you also setting -D<dependency>_DIR variables for the other packages? Using -DKLU_DIR alone didn't work for me with the above additions. I had add -D<dependency>_DIR variables for each dependency which also makes the config work without the above additions.

This issue is tangential to the topic of this PR so I suggest these changes get broken out into a separate PR.

doc/shared/RecentChanges.rst Outdated Show resolved Hide resolved
doc/shared/nvectors/NVector_Description.rst Outdated Show resolved Hide resolved
examples/arkode/F2003_parallel/CMakeLists.txt Outdated Show resolved Hide resolved
examples/cvode/F2003_serial/CMakeLists.txt Outdated Show resolved Hide resolved
examples/cvodes/F2003_serial/CMakeLists.txt Outdated Show resolved Hide resolved
@balos1 balos1 requested a review from gardner48 June 12, 2024 22:14
@balos1
Copy link
Member Author

balos1 commented Jun 12, 2024

@gardner48 All checks passing 😄

gardner48 added a commit to sundials-codes/answers that referenced this pull request Jun 12, 2024
Updates for LLNL/sundials#447 (Fortran 32-bit Interface)

---------

Co-authored-by: Daniel R. Reynolds <[email protected]>
Co-authored-by: David Gardner <[email protected]>
@gardner48 gardner48 merged commit 87b7ab2 into develop Jun 12, 2024
22 of 23 checks passed
@gardner48 gardner48 deleted the feature/fortran-32index-build branch June 12, 2024 23:15
gardner48 added a commit that referenced this pull request Jun 14, 2024
gardner48 added a commit that referenced this pull request Jun 14, 2024
Revert changes to FindKLU made in #447
gardner48 added a commit that referenced this pull request Jun 20, 2024
Update the the SWIG generation and CMake build system to support
Fortran interfaces for 32-bit or 64-bit sunindextype.

---------

Co-authored-by: David Gardner <[email protected]>
Co-authored-by: Daniel R. Reynolds <[email protected]>
gardner48 added a commit that referenced this pull request Jun 20, 2024
Revert changes to FindKLU made in #447
gardner48 pushed a commit that referenced this pull request Jun 25, 2024
This change was supposed to be reverted in #447 but it was missed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants