Skip to content

Commit b553a03

Browse files
authored
Merge pull request #6 from fverdugo/bugfix_parallel_ksp
Preserving ownership while destroying KspMPISetup
2 parents a74322d + f466db4 commit b553a03

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.1.0] - Unreleased
8+
## [0.1.1] - 2024-02-28
9+
10+
### Fixed
11+
12+
- Bugs in KSP solver wrapper.
13+
14+
### Added
15+
16+
- More methods to the low-level API.
17+
18+
## [0.1.0] - 2024-01-27
919

1020
### Added
1121

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PetscCall"
22
uuid = "1194c000-87c4-4102-b4a0-a6217ec4849e"
33
authors = ["Francesc Verdugo <[email protected]> and contributors"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

src/ksp.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ end
373373

374374
function ksp_finalize!(setup::KspMPISetup)
375375
if ! setup.user_handles
376-
ksp_destroy_handles!(setup.handles)
376+
ownership = setup.ownership
377+
handles = setup.handles
378+
GC.@preserve ownership ksp_destroy_handles!(handles)
377379
end
378380
nothing
379381
end

0 commit comments

Comments
 (0)