13 #include "EpetraExt_MultiMpiComm.h"
15 #include "EpetraExt_MultiSerialComm.h"
25 int num_global_stoch_blocks = basis->size();
27 int num_spatial_procs = params.
get(
"Number of Spatial Processors", -1);
45 bool use_isorropia = params.
get(
"Rebalance Stochastic Graph",
false);
60 globalMultiComm(globalMultiComm_)
73 bool use_isorropia = params.
get(
"Rebalance Stochastic Graph",
false);
84 int num_global_stochastic_blocks,
85 int num_spatial_procs)
90 if (num_spatial_procs == -1) {
93 num_spatial_procs = globalComm.
NumProc();
100 num_global_stochastic_blocks,
104 Teuchos::rcp(
new EpetraExt::MultiSerialComm(num_global_stochastic_blocks));
107 return globalMultiComm;
114 return Teuchos::rcp(&(globalMultiComm->SubDomainComm()),
false);
121 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.