cgma
CGMProcConfig.cpp
Go to the documentation of this file.
00001 #include "CGMProcConfig.hpp"
00002 
00004 CGMProcConfig::CGMProcConfig(MPI_Comm proc_comm) 
00005   : procComm(proc_comm),
00006     master(0)
00007 {
00008 #ifdef USE_MPI
00009   int rank, size;
00010   MPI_Comm_rank(procComm, &rank); 
00011   procRank = (unsigned int) rank;
00012   MPI_Comm_size(procComm, &size); 
00013   procSize = (unsigned int) size;
00014 #else
00015   procRank = 0;
00016   procSize = 1;
00017 #endif
00018 }
00019 
00020 CGMProcConfig::~CGMProcConfig() 
00021 {
00022 }
00023 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines