48 parallelParams.
set(
"Number of Spatial Processors", numProc);
61 for(std::size_t i=0;i<big.
rowCount();i++) {
63 out <<
" " << (big(i,
j) ?
"*" :
" " ) <<
" ";
75 bool rowPassed =
true;
82 for(
int j=0;
j<count;
j++)
83 row[activeRow[
j]] =
true;
86 for(std::size_t
j=0;
j<row.size();
j++)
87 rowPassed = rowPassed && (row[
j]==big(i,
j));
108 out <<
"Master Array Basis = \n";
109 for(
int i=0;i<masterBasis->size();i++) {
111 for(
int i=0;i<num_KL;i++) {
112 out << masterArray[i] <<
" ";
117 out <<
"Row Array Basis = \n";
118 for(
int i=0;i<rowBasis->size();i++) {
120 for(
int i=0;i<num_KL;i++) {
121 out << rowArray[i] <<
" ";
129 out <<
"rowBasis.size = " << rowBasis->size() << std::endl;
130 out <<
"colBasis.size = " << colBasis->size() << std::endl;
133 out <<
"Size = " << rectBig.
rowCount() <<
" x " << rectBig.
colCount() << std::endl;
134 for(std::size_t i=0;i<rectBig.
rowCount();i++) {
136 out <<
" " << (rectBig(i,
j) ?
"*" :
" " ) <<
" ";
141 out <<
"Size = " << masterBig.
rowCount() <<
" x " << masterBig.
colCount() << std::endl;
142 for(std::size_t i=0;i<masterBig.
rowCount();i++) {
144 out <<
" " << (masterBig(i,
j) ?
"*" :
" " ) <<
" ";
150 bool graphs_match =
true;
151 for(std::size_t i=0;i<rectBig.
rowCount();i++) {
152 std::size_t masterI = masterBasis->index(rowBasis->term(i));
154 std::size_t masterJ = masterBasis->index(colBasis->term(
j));
155 graphs_match &= (rectBig(i,
j)==masterBig(masterI,masterJ));
int NumGlobalRows() const
Teuchos::RCP< const EpetraExt::MultiComm > getMultiComm() const
Get global comm.
std::size_t colCount() const
What is the number of columns.
Teuchos::RCP< const Epetra_CrsGraph > getStochasticGraph() const
Get stochastic graph.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
A multidimensional index.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< const Stokhos::CompletePolynomialBasis< int, double > > buildBasis(int num_KL, int porder)
std::size_t rowCount() const
What is the number of rows.
virtual int NumProc() const =0
int ExtractGlobalRowCopy(int_type Row, int LenOfIndices, int &NumIndices, int_type *Indices) const
#define TEST_EQUALITY(v1, v2)