25 problemParams.
set(
"Name",
"Heat Nonlinear Source");
28 problemParams.
set(
"Left BC", 0.0);
29 problemParams.
set(
"Right BC", 0.0);
33 problemParams.
sublist(
"Source Function");
34 sourceParams.
set(
"Name",
"Constant");
35 sourceParams.
set(
"Constant Value", 1.0);
39 problemParams.
sublist(
"Material Function");
40 matParams.
set(
"Name",
"KL Exponential Random Field");
41 matParams.
set(
"Mean", 1.0);
42 matParams.
set(
"Standard Deviation", 0.5);
43 matParams.
set(
"Number of KL Terms", num_KL);
45 a[0] = 0.0; b[0] = 1.0; L[0] = 1.0;
46 matParams.
set(
"Domain Lower Bounds", a);
47 matParams.
set(
"Domain Upper Bounds", b);
48 matParams.
set(
"Correlation Lengths", L);
52 problemParams.
sublist(
"Response Functions");
53 responseParams.
set(
"Number", 1);
54 responseParams.
set(
"Response 0",
"Solution Average");
59 if (!full_expansion) {
60 sgParams->
set(
"Parameter Expansion Type",
"Linear");
61 sgParams->
set(
"Jacobian Expansion Type",
"Linear");
64 sgParams->
sublist(
"SG Operator");
65 sgOpParams.
set(
"Operator Method",
"Matrix Free");
67 sgParams->
sublist(
"SG Preconditioner");
68 sgPrecParams.
set(
"Preconditioner Method",
"Mean-based");
69 sgPrecParams.
set(
"Mean Preconditioner Type",
"ML");
71 sgPrecParams.
sublist(
"Mean Preconditioner Parameters");
72 precParams.
set(
"default values",
"SA");
81 for(
int i=0; i<num_KL; i++)
96 for(
int i=0; i<num_KL; i++)
111 parallelParams.
set(
"Number of Spatial Processors", globalComm->
NumProc());
115 Cijk = basis->computeTripleProductTensor();
117 Cijk = basis->computeLinearTripleProductTensor();
123 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)
RCP< ParameterList > sublist(const RCP< ParameterList > ¶mList, const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
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)