60 #include "EpetraExt_MultiMpiComm.h"
64 #include "EpetraExt_MultiSerialComm.h"
68 #include "EpetraExt_RowMatrixOut.h"
80 int colOffset[] = {-1, 0, 1};
81 for(
int myRow=0;myRow<numUnks;myRow++) {
82 int row = map.
GID(myRow);
84 colIndices[i] = colOffset[i]+row;
90 colPtr = colIndices+1;
113 int rank = comm->
MyPID();
115 out <<
"NumProc = " << numProc <<
", Rank = " << rank << std::endl;
123 std::vector<int> order(3);
124 order[0] = 2; order[1] = 3; order[2] = 1;
125 std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > sa_BasisPerDRow(3);
128 sa_BasisPerDRow[2] =
buildBasis(num_KL,order);
130 std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > sa_BasisPerDCol;
138 for(std::size_t c=0;c<sa_BasisPerDCol.size();c++) {
144 = cBasis->getCoordinateBases();
146 for(
int i=0;i<cBases.size();i++) {
147 int bOrder = cBases[i]->order();
int NumGlobalElements() const
void buildColBasisFunctions(const Epetra_CrsGraph &determGraph, const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &masterBasis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_col_basis)
const Epetra_BlockMap & ColMap() const
int InsertGlobalIndices(int_type GlobalRow, int NumIndices, int_type *Indices)
virtual int MyPID() const =0
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)
virtual int NumProc() const =0
#define TEST_EQUALITY(v1, v2)
#define TEUCHOS_ASSERT(assertion_test)