Skip to content

Commit

Permalink
Tested with Julia 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed May 10, 2023
1 parent e59a21b commit a4be39a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1.8
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- name: Set up Python
Expand Down
6 changes: 3 additions & 3 deletions examples/TestEm3/TestEm3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.8.5",
"display_name": "Julia 1.9.0",
"language": "julia",
"name": "julia-1.8"
"name": "julia-1.9"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.8.5"
"version": "1.9.0"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/WaterPhantom/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
FHist = "68837c9b-b678-4cd5-9925-8a54edc8f695"
Geant4 = "559df036-b7a0-42fd-85df-7d5dd9d70f44"
Geant4_julia_jll = "e202cb52-5471-567a-9cb0-0ca301e27810"
Expand Down
6 changes: 3 additions & 3 deletions examples/WaterPhantom/WaterPhantom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.8.5",
"display_name": "Julia 1.9.0",
"language": "julia",
"name": "julia-1.8"
"name": "julia-1.9"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.8.5"
"version": "1.9.0"
},
"orig_nbformat": 4
},
Expand Down
11 changes: 8 additions & 3 deletions examples/basic/B1/B1.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -19,6 +20,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -47,6 +49,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -76,6 +79,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand All @@ -101,6 +105,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
Expand Down Expand Up @@ -144,15 +149,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.8.5",
"display_name": "Julia 1.9.0",
"language": "julia",
"name": "julia-1.8"
"name": "julia-1.9"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.8.5"
"version": "1.9.0"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/basic/B2/B2a.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.8.5",
"display_name": "Julia 1.9.0",
"language": "julia",
"name": "julia-1.8"
"name": "julia-1.9"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.8.5"
"version": "1.9.0"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions gen/Geant4.wit
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ out_h_fname = "cpp/jlGeant4.h"
include_dirs = [ "/usr/local/opt/llvm/include/c++/v1",
"/usr/local/opt/llvm@13/lib/clang/13.0.1/include",
"./cpp",
"/Users/mato/.julia/artifacts/9d4b417a98ec8f720b8871baefe87108f864656f/include/Geant4",
"/Users/mato/.julia/artifacts/3ddffb81697f6dd4742c75d8b8d14865fe8a388c/include/Geant4",
"/Users/mato/.julia/artifacts/873cac66ad4ed154c44c11514f103918776c832d/include",
"/Applications/Julia-1.8.app/Contents/Resources/julia/include/julia",
"/Users/mato/.julia/artifacts/62eae10c647bb4ea186063b758bc3fc5881a34f1/lib/cmake/JlCxx/../../../include"]
"/Users/mato/.julia/artifacts/6fab6270d8576dd5a20a5e0ed05a971c7673cf21/lib/cmake/JlCxx/../../../include"]

input = [ "Geant4Wrap.h",
"G4RunManager.hh",
Expand Down
2 changes: 1 addition & 1 deletion src/G4JLInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end
function G4JLActionInitialization(f::Function)
ff(self::ConstCxxPtr{G4JLActionInitialization}) = f(self[])
sf = @safe_cfunction($ff, Nothing, (ConstCxxPtr{G4JLActionInitialization},)) # crate a safe c function
G4JLActionInitialization(preserve(sf)) # call the construction
G4JLActionInitialization(preserve(sf), preserve(sf)) # call the construction
end

#---Material friendly functions (keyword arguments)------------------------------------------------
Expand Down

0 comments on commit a4be39a

Please sign in to comment.