Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883605 - sci-physics/geant-4.11.0.2-r1: particle trajectories are not displayed
Summary: sci-physics/geant-4.11.0.2-r1: particle trajectories are not displayed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Guilherme Amadio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 17:26 UTC by tetumetal
Modified: 2023-05-27 23:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (geant-4.11.0.2-r1.ebuild.patch,627 bytes, patch)
2022-11-29 17:26 UTC, tetumetal
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tetumetal 2022-11-29 17:26:30 UTC
Created attachment 838077 [details, diff]
patch

Dear Geant4 maintainer,

I installed Geant4 and the variable DGEANT4_BUILD_STORE_TRAJECTORY is set to OFF by default. And I could not get the opengl window to show the particle trajectories. 

So, I updated the ebuild file to set that variable to ON (described in the geant4 installation manual as default behaviour). Then, I could see the particle trajectories in the opengl window. 

I attached a simple patch to change the default behaviour of DGEANT4_BUILD_STORE_TRAJECTORY to ON.

   Tetumetal,
Comment 1 Guilherme Amadio gentoo-dev 2022-12-15 16:29:35 UTC
Hi, GEANT4_BUILD_STORE_TRAJECTORY should not be enabled by default, as that makes simulations a *lot* slower. Please use EXTRA_ECONF="-DGEANT4_BUILD_STORE_TRAJECTORY=ON" for that. You can use a portage.env to make that persistent if you want too.
Comment 2 tetumetal 2022-12-21 11:13:56 UTC
Hi,

Thanks for the tip, I'll use the EXTRA_ECONF in portage.env.

I understand that you could get some degree of performance by disabling the STORE_TRAJECTORY. But, for debugging the simulation setup I rely on being able to visualize the particle trajectories. And maybe some users may face the same issue of not being able to visualize particle trajectories, and not being able to understand why is not working; since the default setting is to have STORE_TRAJECTORY enabled.

    Tetumetal,
Comment 3 Larry the Git Cow gentoo-dev 2023-05-24 06:50:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=526c2237f529b379fe6f42a2b9937e6b53625660

commit 526c2237f529b379fe6f42a2b9937e6b53625660
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2023-05-23 07:27:41 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2023-05-24 06:50:13 +0000

    sci-physics/geant: add 4.11.0.4
    
    Closes: https://bugs.gentoo.org/883605
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 sci-physics/geant/Manifest              |   1 +
 sci-physics/geant/geant-4.11.0.4.ebuild | 131 ++++++++++++++++++++++++++++++++
 sci-physics/geant/metadata.xml          |   1 +
 3 files changed, 133 insertions(+)
Comment 4 Guilherme Amadio gentoo-dev 2023-05-24 06:53:01 UTC
Please note that I've removed the EXTRA_ECONF from sci-physics/geant. It's not supposed to be used for CMake projects. See https://bugs.gentoo.org/897900.

The new ebuilds provide a USE flag to enable trajectories to make it easier for users.
Comment 5 tetumetal 2023-05-27 23:08:22 UTC
(In reply to Guilherme Amadio from comment #4)
> Please note that I've removed the EXTRA_ECONF from sci-physics/geant. It's
> not supposed to be used for CMake projects. See
> https://bugs.gentoo.org/897900.
> 
> The new ebuilds provide a USE flag to enable trajectories to make it easier
> for users.

Perfect. Thanks a lot!