00001 //************************************************************************** 00002 #ifndef _MAIN_H 00003 #define _MAIN_H 00004 //************************************************************************** 00005 #include <mpi++.h> // For MPI:: functions 00006 //************************************************************************** 00007 template <class Etype> 00008 inline void BroadcastToSlaves(Etype *var, int n = 1) 00009 { 00010 MPI::COMM_WORLD.Bcast((unsigned char *) var, n*sizeof(Etype), MPI::BYTE, 0); 00011 } 00012 //************************************************************************** 00013 #endif // _MAIN_H 00014 //**************************************************************************
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001