Skip to content

Commit

Permalink
Add precompilation workload
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 7, 2024
1 parent d260d80 commit d1ba4f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GeoEnergyIO"
uuid = "3b1dd628-313a-45bb-9d8d-8f3c48dcb5d4"
authors = ["Olav Møyner <[email protected]> and contributors"]
version = "1.0.1"
version = "1.0.2"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand All @@ -10,16 +10,18 @@ Jutul = "2b460a1a-8a2b-45b2-b125-b5c536396eb9"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Parsers = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
julia = "1.8"
DelimitedFiles = "1.6.7"
Jutul = "0.2.21"
LinearAlgebra = "1"
OrderedCollections = "1.6.2"
Parsers = "2.7.1"
PrecompileTools = "1.2.0"
StaticArrays = "1.4.4"
julia = "1.8"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
11 changes: 11 additions & 0 deletions src/GeoEnergyIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,15 @@ module GeoEnergyIO
end
return out
end

using PrecompileTools
@compile_workload begin
spe1_pth = test_input_file_path("spe1", "BENCH_SPE1.DATA")
spe1 = parse_data_file(spe1_pth)
spe9_pth = test_input_file_path("spe9", "SPE9_CP.DATA", base = "opm-tests")
spe9 = parse_data_file(spe9_pth)
pth = test_input_file_path("grdecl", "raised_col_sloped.txt", base = missing)
grdecl = parse_grdecl_file(pth)
nothing
end
end

0 comments on commit d1ba4f7

Please sign in to comment.