English Français

Documentation / Developer's manual

Available modules

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: TIntMPI.h Source File
Uranie / Launcher  v4.10.0
/* @license-end */
TIntMPI.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2024 CEA/DES
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published
6 // by the Free Software Foundation, either version 3 of the License, or any
7 // later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 // $Id$
19 // $Author$
20 // $Date$
21 // $Revision$
22 // $State$
24 
41 #ifndef TINTMPI_H
42 #define TINTMPI_H
43 
44 #include "TLauncher.h"
45 
46 // MPI
47 #include "mpi.h" // For some private variables
48 
49 namespace URANIE
50 {
51 namespace Launcher
52 {
53 class TIntMPI
54 {
55 private:
56 public:
57  //---------------------------------------------
61  TIntMPI();
64  virtual ~TIntMPI();
66 
68  static int init(int& argc, char**& argv);
69  static void exit();
71 
73 
75  static int getMyTid();
76 
78  static int getNumProcs();
80 
81  //---------------------------------------------
85  virtual void printLog(Option_t *option = "");
87 
88  ClassDef(URANIE::Launcher::TIntMPI, ID_LAUNCHER)
89  //Classe de
90 };
91 
92 } // Fin du namespace Distribution
93 } // Fin du namespace URANIE
94 #endif
Definition: TCluster.h:66
static int getNumProcs()
Returns the number of processes.
static int getMyTid()
Returns PVM taskid or MPI rank.
Description of the class TIntMPI.
Definition: TIntMPI.h:53
Interface of the class URANIE::Launcher::TLauncher.
virtual ~TIntMPI()
Default destructor.
virtual void printLog(Option_t *option="")
static int init(int &argc, char **&argv)
TIntMPI()
Default constructor.