59 problemParams.
set(
"Name",
"Heat Nonlinear Source");
62 problemParams.
set(
"Left BC", 0.0);
63 problemParams.
set(
"Right BC", 0.0);
67 problemParams.
sublist(
"Source Function");
68 sourceParams.
set(
"Name",
"Constant");
69 sourceParams.
set(
"Constant Value", 1.0);
73 problemParams.
sublist(
"Material Function");
74 matParams.
set(
"Name",
"KL Exponential Random Field");
75 matParams.
set(
"Mean", 1.0);
76 matParams.
set(
"Standard Deviation", 0.5);
77 matParams.
set(
"Number of KL Terms", num_KL);
79 a[0] = 0.0; b[0] = 1.0; L[0] = 1.0;
80 matParams.
set(
"Domain Lower Bounds", a);
81 matParams.
set(
"Domain Upper Bounds", b);
82 matParams.
set(
"Correlation Lengths", L);
86 problemParams.
sublist(
"Response Functions");
87 responseParams.
set(
"Number", 1);
88 responseParams.
set(
"Response 0",
"Solution Average");
93 if (!full_expansion) {
94 sgParams->
set(
"Parameter Expansion Type",
"Linear");
95 sgParams->
set(
"Jacobian Expansion Type",
"Linear");
98 sgParams->
sublist(
"SG Operator");
99 sgOpParams.
set(
"Operator Method",
"Matrix Free");
101 sgParams->
sublist(
"SG Preconditioner");
102 sgPrecParams.
set(
"Preconditioner Method",
"Mean-based");
103 sgPrecParams.
set(
"Mean Preconditioner Type",
"ML");
105 sgPrecParams.
sublist(
"Mean Preconditioner Parameters");
106 precParams.
set(
"default values",
"SA");
115 for(
int i=0; i<num_KL; i++)
130 for(
int i=0; i<num_KL; i++)
145 parallelParams.
set(
"Number of Spatial Processors", globalComm->
NumProc());
149 Cijk = basis->computeTripleProductTensor();
151 Cijk = basis->computeLinearTripleProductTensor();
157 return sg_parallel_data;
Teuchos::RCP< Stokhos::ParallelData > buildParallelData(bool full_expansion, int num_KL, const Teuchos::RCP< const Epetra_Comm > &globalComm, const Teuchos::RCP< const Stokhos::CompletePolynomialBasis< int, double > > &basis)
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
RCP< ParameterList > sublist(const RCP< ParameterList > ¶mList, const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< Teuchos::ParameterList > buildAppParams(int num_KL, bool full_expansion)
Legendre polynomial basis.
Teuchos::RCP< const Stokhos::CompletePolynomialBasis< int, double > > buildBasis(int num_KL, int porder)
virtual int NumProc() const =0
#define TEUCHOS_ASSERT(assertion_test)