45 #include "EpetraExt_MultiMpiComm.h"
47 #include "EpetraExt_MultiSerialComm.h"
57 int num_global_stoch_blocks = basis->size();
59 int num_spatial_procs = params.
get(
"Number of Spatial Processors", -1);
77 bool use_isorropia = params.
get(
"Rebalance Stochastic Graph",
false);
92 globalMultiComm(globalMultiComm_)
105 bool use_isorropia = params.
get(
"Rebalance Stochastic Graph",
false);
116 int num_global_stochastic_blocks,
117 int num_spatial_procs)
122 if (num_spatial_procs == -1) {
125 num_spatial_procs = globalComm.
NumProc();
132 num_global_stochastic_blocks,
136 Teuchos::rcp(
new EpetraExt::MultiSerialComm(num_global_stochastic_blocks));
139 return globalMultiComm;
146 return Teuchos::rcp(&(globalMultiComm->SubDomainComm()),
false);
153 return Teuchos::rcp(&(globalMultiComm->TimeDomainComm()),
false);
T & get(ParameterList &l, const std::string &name)
Teuchos::RCP< const Epetra_Comm > getStochasticComm(const Teuchos::RCP< const EpetraExt::MultiComm > &globalMultiComm)
ParallelData(const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Stokhos::Sparse3Tensor< int, double > > &Cijk, const Teuchos::RCP< const Epetra_Comm > &globalComm, Teuchos::ParameterList ¶ms)
Constructor.
Teuchos::RCP< const EpetraExt::MultiComm > globalMultiComm
Multi-comm.
RCP< ParameterList > sublist(const RCP< ParameterList > ¶mList, const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
Teuchos::RCP< const EpetraExt::MultiComm > buildMultiComm(const Epetra_Comm &globalComm, int num_global_stochastic_blocks, int num_spatial_procs=-1)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< const Epetra_Comm > stoch_comm
Stochastic comm.
Teuchos::RCP< const Epetra_Comm > spatial_comm
Spatial comm.
virtual int NumProc() const =0
Teuchos::RCP< const Epetra_Comm > getSpatialComm(const Teuchos::RCP< const EpetraExt::MultiComm > &globalMultiComm)
Teuchos::RCP< Stokhos::EpetraSparse3Tensor > epetraCijk
Epetra Cijk.