Message: Re: Clear the memory allocated for G4VPrimitiveScorer? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Clear the memory allocated for G4VPrimitiveScorer? 

Forum: Biasing and Scoring
Re: Question Clear the memory allocated for G4VPrimitiveScorer? (Clare Huang)
Re: None Re: Clear the memory allocated for G4VPrimitiveScorer? (Tsukasa Aso)
Date: 28 Dec, 2012
From: Clare Huang <Clare Huang>

Hi Tsukasa,

thank you for responding to my questions. I really appreciate your time and help.

I cleared most of the application-related memory issue regarding using G4PrimitiveScorer for properly deleting it in the destructor of the derived G4PrimitiveScorer classes. that's something that was not documented extensively in the Geant4 documentation, but the user has to make sure the memory is managed properly. I think Geant4 users would appreciate some documentations of memory management for ease of adapting the Geant4 toolkit to different applications.

to answer your question, the size of the geometry in my application is 234x145x479. I also used about 28 energy-dependent primitive scorers (derived class of G4PSCellFlux) to record information. I recorded 28 scorers in Double at the end of each simulation (1 million events or so). Perhaps the number of primitive scorers might have something to do with the memory usage.

I found that my application finished running if i simulate 1-2 million instead of 10-million events at a time. 10-million-event simulation will eat up most of computer memory and did not finish the simulation. I think I will do multiple 1 million event simulations to get what i need for memory limitation. let me know if you have any thought/comment on this.

thanks a lot for your time and help!

have a blessed Christmas and new year.

Best regards, Clare

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Clear the memory allocated for G4VPrimitiveScorer?   (Philipp Roser - 07 May, 2018)
1 Feedback: Re: Clear the memory allocated for G4VPrimitiveScorer?   (Pedro Arce - 08 May, 2018)
2 None: Re: Clear the memory allocated for G4VPrimitiveScorer?   (Makoto Asai - 08 May, 2018)
1 Question: Re: Clear the memory allocated for G4VPrimitiveScorer?   (Philipp Roser - 30 Jul, 2018)
... 2 Message(s)
 Add Message Add Message
to: "Re: Clear the memory allocated for G4VPrimitiveScorer?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews