Skip to content

Commit

Permalink
Improve precompilation for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Jun 6, 2023
1 parent 7612063 commit 5f7aba7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JutulDarcy"
uuid = "82210473-ab04-4dce-b31b-11573c4f8e0a"
authors = ["Olav Møyner <olav.moyner@gmail.com>"]
version = "0.2.4"
version = "0.2.5"

[deps]
AlgebraicMultigrid = "2169fc97-5a83-5252-b627-83903c6c433c"
Expand Down
11 changes: 11 additions & 0 deletions ext/JutulDarcyHYPREExt/JutulDarcyHYPREExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,16 @@ module JutulDarcyHYPREExt
using HYPRE
using Jutul
using SparseArrays
using PrecompileTools
include("cpr.jl")

@compile_workload begin
targets = [(true, :csc), (true, :csr)]
# MPI, trivial partition
JutulDarcy.precompile_darcy_multimodels(targets,
dims = (4, 1, 1),
precond = :cpr,
amg_type = :hypre
)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ module JutulDarcyPartitionedArraysExt
# MPI, trivial partition
JutulDarcy.precompile_darcy_multimodels(targets,
dims = (4, 1, 1),
setuparg = (mode = :mpi, ),
default_linsolve = false,
setuparg = (
mode = :mpi,
precond = :ilu0
),
split_wells = true
)
# Native PArray, non-trivial partition
Expand Down

2 comments on commit 5f7aba7

@moyner
Copy link
Member Author

@moyner moyner commented on 5f7aba7 Jun 6, 2023

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/85017

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.5 -m "<description of version>" 5f7aba745430e27ed2fdc5cb4eaaf13a6d5931a5
git push origin v0.2.5

Please sign in to comment.