Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
G4MPIntupleMerger Class Reference

#include <G4MPIntupleMerger.hh>

Public Member Functions

 G4MPIntupleMerger (G4int nofReducedNtupleFiles=0, G4bool rowWise=false, G4bool rowMode=true)
 
 ~G4MPIntupleMerger ()
 

Private Attributes

toolx::mpi::wrmpi * fWrmpi
 

Detailed Description

Definition at line 44 of file G4MPIntupleMerger.hh.

Constructor & Destructor Documentation

◆ G4MPIntupleMerger()

G4MPIntupleMerger::G4MPIntupleMerger ( G4int  nofReducedNtupleFiles = 0,
G4bool  rowWise = false,
G4bool  rowMode = true 
)

Definition at line 39 of file G4MPIntupleMerger.cc.

41{
42 // Configure MPI using G4MPImanager
43
44 // G4cout << "Start configure ntuple MPI merging" << G4endl;
45
46 // Create MPI Root analysis manager
47 G4bool isMaster = true;
48 auto analysisManager
49 = new G4RootMpiAnalysisManager(isMaster);
50 analysisManager->SetVerboseLevel(1);
51 // G4cout << "Start configure ntuple MPI merging" << G4endl;
52
53 // Get communicator
55 G4int mpiRank = mpiManager->GetRank();
56 G4int mpiSize = mpiManager->GetActiveSize();
57 auto comm = mpiManager->GetAllComm();
58
59 // G4int tag = G4MPImanager::kTAG_NTUPLE;
60 fWrmpi = new toolx::mpi::wrmpi(G4cout, *comm);
61
62 analysisManager->SetMpiNtupleMerging(
63 fWrmpi, mpiRank, mpiSize, nofReducedNtupleFiles);
64 analysisManager->SetNtupleRowWise(rowWise, rowMode);
65
66 // G4cout << "End configure ntuple MPI merging" << G4endl;
67}
static G4MPImanager * GetManager()
G4int GetActiveSize() const
G4int GetRank() const
const MPI_Comm * GetAllComm() const
toolx::mpi::wrmpi * fWrmpi

◆ ~G4MPIntupleMerger()

G4MPIntupleMerger::~G4MPIntupleMerger ( )

Definition at line 69 of file G4MPIntupleMerger.cc.

70{
71 delete fWrmpi;
72}

Member Data Documentation

◆ fWrmpi

toolx::mpi::wrmpi* G4MPIntupleMerger::fWrmpi
private

Definition at line 52 of file G4MPIntupleMerger.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration