82 parallelParams.
set(
"Number of Spatial Processors", numProc);
95 for(std::size_t i=0;i<big.
rowCount();i++) {
97 out <<
" " << (big(i,
j) ?
"*" :
" " ) <<
" ";
109 bool rowPassed =
true;
116 for(
int j=0;
j<count;
j++)
117 row[activeRow[
j]] =
true;
120 for(std::size_t
j=0;
j<row.size();
j++)
121 rowPassed = rowPassed && (row[
j]==big(i,
j));
142 out <<
"Master Array Basis = \n";
143 for(
int i=0;i<masterBasis->size();i++) {
145 for(
int i=0;i<num_KL;i++) {
146 out << masterArray[i] <<
" ";
151 out <<
"Row Array Basis = \n";
152 for(
int i=0;i<rowBasis->size();i++) {
154 for(
int i=0;i<num_KL;i++) {
155 out << rowArray[i] <<
" ";
163 out <<
"rowBasis.size = " << rowBasis->size() << std::endl;
164 out <<
"colBasis.size = " << colBasis->size() << std::endl;
167 out <<
"Size = " << rectBig.
rowCount() <<
" x " << rectBig.
colCount() << std::endl;
168 for(std::size_t i=0;i<rectBig.
rowCount();i++) {
170 out <<
" " << (rectBig(i,
j) ?
"*" :
" " ) <<
" ";
175 out <<
"Size = " << masterBig.
rowCount() <<
" x " << masterBig.
colCount() << std::endl;
176 for(std::size_t i=0;i<masterBig.
rowCount();i++) {
178 out <<
" " << (masterBig(i,
j) ?
"*" :
" " ) <<
" ";
184 bool graphs_match =
true;
185 for(std::size_t i=0;i<rectBig.
rowCount();i++) {
186 std::size_t masterI = masterBasis->index(rowBasis->term(i));
188 std::size_t masterJ = masterBasis->index(colBasis->term(
j));
189 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.
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Teuchos::RCP< const Epetra_CrsGraph > getStochasticGraph() const
Get stochastic graph.
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)