Message: Re: how to merge data of an array of struct from different threads using G4Accumulable Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to merge data of an array of struct from different threads using G4Accumulable  

Forum: Multithreading
Re: Question how to merge data of an array of struct from different threads using G4Accumulable (Jaafar EL Bakkali)
Date: 20 Jan, 2017
From: Ivana Hrivnacova <Ivana Hrivnacova>

Hello,

G4Accumulable<T> is sutable only for fundamental types, like G4int, G4float, G4double.

In your case, you should define your accumulable type derived from G4VAccumulable; see the chapter 9.4.2 User defined accumulables in Application developers guide for more details: http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch09s04.html#sect.UserAccumulable

Best regards,

 Add Message Add Message
to: "Re: how to merge data of an array of struct from different threads using G4Accumulable "

 Subscribe Subscribe

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