Skip to content

Commit 8caee67

Browse files
committed
Using new version of Geant4 wrappers
1 parent e1eba4b commit 8caee67

7 files changed

Lines changed: 406 additions & 81 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Geant4"
22
uuid = "559df036-b7a0-42fd-85df-7d5dd9d70f44"
33
authors = ["Pere Mato <pere.mato@cern.ch>"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"

docs/src/examples/TestEm3_lit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ app = G4JLApplication(detector = TestEm3Detector(), ## detector wi
302302
# ## Configure, Initialize and Run
303303
configure(app)
304304
initialize(app)
305-
SetParticlePosition(particlegun, G4ThreeVector(-app.detector.fWorldSizeX/2,0,0)) ## Only now is known the size of the 'world'
305+
SetParticlePosition(particlegun, G4ThreeVector(-app.detector.fWorldSizeX/2 + 1mm,0,0)) ## Only now is known the size of the 'world'
306306

307307
beamOn(app, 1000)
308308

docs/src/releases.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
## Release Notes
2+
3+
### 0.2.2
4+
- Using new version of Geant4_jll v11.3.2
5+
- Fixes:
6+
- TestEm3 particle gun needs to be inside world volume
7+
- `length` is also a method of Geant4 (removed from exports)
8+
- Update G4Vis to breaking changes in GeometryBasics@0.5
9+
210
### 0.2.1
311
- New Features
412
- Added wrappers for classes `LBE`, `G4GenericPolycone`

gen/Geant4.wit.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,5 @@ export = "all"
169169
veto_list = "Geant4-veto.h"
170170
cxx-std = "c++17"
171171
inheritances = [ ]
172-
export_blacklist = [ ]
172+
export_blacklist = ["length"]
173173
cxxwrap_version = "@CxxWrap_VERSION@"

gen/jlGeant4-report.txt

Lines changed: 393 additions & 77 deletions
Large diffs are not rendered by default.

src/G4CallBacks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function make_callback(ctx, fun, rt, args)
2020
lock(spinlock)
2121
try
2222
i_callback = Symbol(:_internal_callback_, "$(fun)_", cb_counter[])
23-
narg = length(args)
23+
narg = Base.length(args)
2424
CONTEXT = typeof(ctx)
2525
#---create the internal callback function------------------------------------------------------
2626
if narg == 0

src/Geant4.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Geant4
77
gendir = normpath(joinpath(@__DIR__, "../gen"))
88
if isdir(joinpath(gendir, "build/lib"))
99
include(joinpath(gendir, "jl/src/Geant4-export.jl"))
10+
println("Using local Geant4 wrapper code from: $gendir")
1011
@wrapmodule(()->joinpath(gendir, "build/lib", "libGeant4Wrap.$(Libdl.dlext)"))
1112
else
1213
using Geant4_julia_jll

0 commit comments

Comments
 (0)