Skip to content

Commit

Permalink
Merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Roberts committed May 7, 2024
2 parents 4afeebf + bd0a86f commit 06f5162
Show file tree
Hide file tree
Showing 207 changed files with 24,585 additions and 12,124 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/check-clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
image: ghcr.io/llnl/sundials_spack_cache:llvm-17.0.4-h4lflucc3v2vage45opbo2didtcuigsn.spack
steps:
- name: Install git
run: |
run: |
apt update
apt install -y git
Expand All @@ -26,18 +26,18 @@ jobs:

- name: Print clang-format version
run: clang-format --version

- name: Run checker on code
run: |
./scripts/format.sh .
./scripts/format.sh benchmarks examples include src test
- name: Run git diff to see if anything changed
run: /usr/bin/git diff --name-only --exit-code

- name: Run git diff if we failed
if: failure()
run: /usr/bin/git diff > diff

- name: Archive diff if we failed
uses: actions/upload-artifact@v3
if: failure()
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "test/answers"]
path = test/answers
url = https://github.com/sundials-codes/answers.git
[submodule "external/sundials-addon-example"]
path = external/sundials-addon-example
url = https://github.com/sundials-codes/sundials-addon-example.git
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## Changes to SUNDIALS in release X.Y.Z

Created shared user interface for ARKODE user-callable routines, to allow more
uniform control over time-stepping algorithms, improved extensibility, and
simplified code maintenance. Marked the corresponding stepper-specific
user-callable routines as deprecated; these will be removed in a future major
release.

Added "Resize" capability to ARKODE's SPRKStep time-stepping module.

Deprecated `ARKStepSetOptimalParams` function; added instructions to user guide
for users who wish to retain the current functionality.

Added the following Runge-Kutta Butcher tables
* `ARKODE_FORWARD_EULER_1_1`
* `ARKODE_RALSTON_EULER_2_1_2`
Expand Down Expand Up @@ -35,6 +46,21 @@ Fixed a bug in some Fortran examples where `c_null_ptr` was passed as an argumen
to a function pointer instead of `c_null_funptr`. This caused compilation issues
with the Cray Fortran compiler.

Fixed a bug where `MRIStepEvolve` would not handle a recoverable error produced
from evolving the inner stepper.

Added CMake infrastructure that enables externally maintained addons/plugins
to be *optionally* built with SUNDIALS. See the [Contributing Guide](./CONTRIBUTING.md)
for more details.

Added support for Kokkos Kernels v4.

Fixed a bug that caused error messages to be cut off in some cases. Fixes [GitHub Issue #461](https://github.com/LLNL/sundials/issues/461).

Fixed a memory leak when an error handler was added to a `SUNContext`. Fixes [GitHub Issue #466](https://github.com/LLNL/sundials/issues/466).

Fixed a CMake bug that caused an MPI linking error for our C++ examples in some instances. Fixes [GitHub Issue #464](https://github.com/LLNL/sundials/issues/464).

## Changes to SUNDIALS in release v7.0.0

### Major Feature
Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ if(SUNDIALS_TEST_UNITTESTS)
add_subdirectory(test/unit_tests)
endif()

if(SUNDIALS_ENABLE_EXTERNAL_ADDONS)
add_subdirectory(external)
endif()

# ===============================================================
# Install configuration header files and license file.
# ===============================================================
Expand Down
54 changes: 44 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Contributing to SUNDIALS

At this time, the SUNDIALS team does not have the resources to review and take
in large additions to the code or significant new features. Contributions
addressing bug fixes or minor changes are preferred via a pull request to the
[SUNDIALS GitHub repository](https://github.com/LLNL/sundials).
There are two primary ways of contributing to SUNDIALS. The first way is by particpating
in the development of SUNDIALS directly through contributions of code to the primary
[SUNDIALS repository](https://github.com/LLNL/sundials). This is the best way to contribute
bug fixes and minor improvements. At this time, the SUNDIALS team does not have the resources
to review and take in large additions to the code or significant new features.
Larger additions can be contributed as a SUNDIALS "addon" which is a component that may be
optionally downloaded by users and then compiled and installed with SUNDIALS.

## Direct Contributions via Pull Requests

Direct contributions to SUNDIALS are made by opening a Pull Request.

All new contributions to SUNDIALS must be made under the BSD 3-clause license.
See the [LICENSE](./LICENSE) and [NOTICE](./NOTICE) files for details. The
Expand Down Expand Up @@ -62,12 +69,11 @@ By making a contribution to this project, I certify that:
this project or the open source license(s) involved.
```

As discussed in the [Docker software project blog](https://blog.docker.com/2014/01/docker-code-contributions-require-developer-certificate-of-origin/)
this DCO "lets us know that you are entitled to contribute this code to
[SUNDIALS] and that you are willing to have it used in distributions and
derivative works."
The DCO lets us know that you are entitled to contribute this code to
SUNDIALS and that you are willing to have it used in distributions and
derivative works.

"By including the DCO signature, you are stating that one or
By including the DCO signature, you are stating that one or
more of the following is true of your contribution:

1. You created this contribution/change and have the right to submit it
Expand All @@ -77,7 +83,7 @@ more of the following is true of your contribution:
3. This contribution/change has been provided to you by someone who did
1 or 2 and you are submitting the contribution unchanged.
4. You understand this contribution is public and may be redistributed as
open source software" under the BSD license.
open source software under the BSD license.

All commits submitted to the SUNDIALS project need to have the following sign
off line in the commit message:
Expand All @@ -89,3 +95,31 @@ Replacing Jane Doe’s details with your name and email address.
If you've set `user.name` and `user.email` in your Git configuration, you can
automatically add a sign off line at the end of the commit message by using the
`-s` option (e.g., `git commit -s`).

## Contributions via SUNDIALS Addons

SUNDIALS "addons" are community developed code additions for SUNDIALS that can be subsumed by the
SUNDIALS build system so that they have full access to all internal SUNDIALS symbols.
The intent is for SUNDIALS addons to function as if they are part of the SUNDIALS library,
while allowing them to potentially have different licenses
(although we encourage BSD-3-Clause still), code style
(although we encourage them to follow the SUNDIALS style outlined :ref:`here <Style>`),
and they **are not maintained by the SUNDIALS team**.

### Creating an addon

To create a SUNDIALS addon and use it there are a few things you need to do:

1. In your addon project, ensure that you have a `CMakeLists.txt` that uses the
`sundials_add_library` CMake macro to create the library target. The best thing to do is simply
copy from, or refer to, a `CMakeLists.txt` in the SUNDIALS `src` directory.
2. Follow the steps in the `README.md` file in the `external/` directory in the root of the SUNDIALS
source code.

An example addon is available [here](https://github.com/sundials-codes/sundials-addon-example).

### Friends of SUNDIALS

The SUNDIALS team maintains a list of some SUNDIALS addons in our [Friends of SUNDIALS](https://github.com/sundials-codes/friends-of-sundials>) repository. These addons are not
maintained by the SUNDIALS team, but have been developed in consultation with us.
**Currently we are only adding projects for existing collaborations**. Please contact the development team if you are interested in collaborating on an addon.
Loading

0 comments on commit 06f5162

Please sign in to comment.