Sierra Toolkit  Version of the Day
BroadcastArg.hpp
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2010 Sandia Corporation. */
3 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4 /* license for use of this work by or on behalf of the U.S. Government. */
5 /* Export of this program may require a license from the */
6 /* United States Government. */
7 /*------------------------------------------------------------------------*/
8 
9 #ifndef STK_UTIL_PARALLEL_BROADCASTARG_HPP
10 #define STK_UTIL_PARALLEL_BROADCASTARG_HPP
11 
12 #include <stk_util/parallel/Parallel.hpp>
13 
14 namespace stk_classic {
15 
21 struct BroadcastArg
22 {
34  BroadcastArg(ParallelMachine parallel_machine, int argc, char **argv);
35 
40  ~BroadcastArg();
41 
42  int m_argc;
43  char ** m_argv;
44 
45 private:
46  BroadcastArg(const BroadcastArg &argv);
47  BroadcastArg &operator=(const BroadcastArg &argv);
48 };
49 
50 } // namespace stk_classic
51 
52 #endif // STK_UTIL_PARALLEL_BROADCASTARG_HPP
BroadcastArg(ParallelMachine parallel_machine, int argc, char **argv)
int m_argc
The broadcasted argc.
Class BroadcastArg creates a copy of argc and argv after broadcasting them from processor 0...
char ** m_argv
The broadcasted argv.
Sierra Toolkit.
MPI_Comm ParallelMachine
Definition: Parallel.hpp:32