34 std::string op_method = params->
get(
"Operator Method",
"Matrix Free");
35 if (op_method ==
"Matrix Free") {
37 sg_comm, sg_basis, epetraCijk,
38 domain_base_map, range_base_map,
39 domain_sg_map, range_sg_map, params));
41 else if (op_method ==
"KL Matrix Free") {
43 sg_comm, sg_basis, epetraCijk,
44 domain_base_map, range_base_map,
45 domain_sg_map, range_sg_map, params));
47 else if (op_method ==
"KL Reduced Matrix Free") {
49 sg_comm, sg_basis, epetraCijk,
50 domain_base_map, range_base_map,
51 domain_sg_map, range_sg_map, params));
53 else if (op_method ==
"Fully Assembled") {
57 sg_comm, sg_basis, epetraCijk, base_graph,
58 domain_sg_map, range_sg_map, params));
62 "Error! Unknown operator method " << op_method
An Epetra operator representing the block stochastic Galerkin operator.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
An Epetra operator representing the block stochastic Galerkin operator.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual Teuchos::RCP< Stokhos::SGOperator > build(const Teuchos::RCP< const EpetraExt::MultiComm > &sg_comm, const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &sg_basis, const Teuchos::RCP< const Stokhos::EpetraSparse3Tensor > &epetraCijk, const Teuchos::RCP< const Epetra_Map > &domain_base_map, const Teuchos::RCP< const Epetra_Map > &range_base_map, const Teuchos::RCP< const Epetra_Map > &domain_sg_map, const Teuchos::RCP< const Epetra_Map > &range_sg_map)
Build preconditioner operator.
SGOperatorFactory(const Teuchos::RCP< Teuchos::ParameterList > ¶ms)
Constructor.
An Epetra operator representing the block stochastic Galerkin operator.
An Epetra operator representing the block stochastic Galerkin operator generated by fully assembling ...